From ed58434c88ac03816fa0d232c679d551987b42a9 Mon Sep 17 00:00:00 2001 From: Paul Date: Sun, 29 Dec 2013 05:46:32 -0500 Subject: [PATCH] Add constexpr to conversion operator for bool integral constants --- include/boost/mpl/bool.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/mpl/bool.hpp b/include/boost/mpl/bool.hpp index f4bb485..0a6180c 100644 --- a/include/boost/mpl/bool.hpp +++ b/include/boost/mpl/bool.hpp @@ -26,7 +26,7 @@ template< bool C_ > struct bool_ typedef integral_c_tag tag; typedef bool_ type; typedef bool value_type; - operator bool() const { return this->value; } + BOOST_CONSTEXPR operator bool() const { return this->value; } }; #if !defined(BOOST_NO_INCLASS_MEMBER_INITIALIZATION)