From 800d3d54168973eff6d98a3d74e710c327e888b9 Mon Sep 17 00:00:00 2001 From: Edward Diener Date: Tue, 14 Jan 2014 22:17:54 -0500 Subject: [PATCH] Add specific 'const' for member function declared as a 'constexpr' in order to conform to C++14. --- test/boost_no_cxx11_user_lit.ipp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/boost_no_cxx11_user_lit.ipp b/test/boost_no_cxx11_user_lit.ipp index 375902f7..d1c2054a 100644 --- a/test/boost_no_cxx11_user_lit.ipp +++ b/test/boost_no_cxx11_user_lit.ipp @@ -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; };