Commit 24d7e260 authored by Xiao Shi's avatar Xiao Shi Committed by Facebook Github Bot

mark constexpr member function const to be forward compatible.

Summary:
Since C++14, constexpr non-static member function will not be implicitly marked
const. See the blog post below for more details.
https://akrzemi1.wordpress.com/2013/06/20/constexpr-function-is-not-const/

Reviewed By: mzlee

Differential Revision: D6819658

fbshipit-source-id: 4a756191fca3e744bda3c63c2669e24d6b16861e
parent cb0807b6
...@@ -171,7 +171,7 @@ namespace apply_tuple { ...@@ -171,7 +171,7 @@ namespace apply_tuple {
template <class T> template <class T>
struct Construct { struct Construct {
template <class... Args> template <class... Args>
constexpr T operator()(Args&&... args) { constexpr T operator()(Args&&... args) const {
return T(std::forward<Args>(args)...); return T(std::forward<Args>(args)...);
} }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment