forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix constexpr in KernelRegistrationBuilder (pytorch#16906)
Summary: Pull Request resolved: pytorch#16906 In C++11, constexpr implies const, so these methods actually wouldn't be rvalue overloads as intended but const rvalue overloads. Let's only apply the constexpr flag in C++14 to be safe. Reviewed By: bddppq Differential Revision: D13998486 fbshipit-source-id: a04d17ef0cc8f45e3d0a1ca9843d194f4f0f6f7f
- Loading branch information
1 parent
6fbb2f7
commit 2d9879c
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters