mirror of
https://github.com/boostorg/config.git
synced 2025-07-30 04:17:16 +02:00
Add specific 'const' for member function declared as a 'constexpr' in order to conform to C++14.
This commit is contained in:
@ -19,7 +19,7 @@ struct my_literal
|
||||
constexpr my_literal() : val(0) {}
|
||||
constexpr my_literal(int i) : val(i) {}
|
||||
constexpr my_literal(const my_literal& a) : val(a.val) {}
|
||||
constexpr bool operator==(const my_literal& a) { return val == a.val; }
|
||||
constexpr bool operator==(const my_literal& a) const { return val == a.val; }
|
||||
int val;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user