From 51f11789214d784d76a0c38c5e57c8cd54dfec9c Mon Sep 17 00:00:00 2001 From: Nikita Kniazev Date: Sat, 24 Feb 2018 20:17:36 +0300 Subject: [PATCH] BOOST_STATIC_CONSTANT should use constexpr --- include/boost/config/detail/suffix.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/config/detail/suffix.hpp b/include/boost/config/detail/suffix.hpp index 22d31f68..2e5b942b 100644 --- a/include/boost/config/detail/suffix.hpp +++ b/include/boost/config/detail/suffix.hpp @@ -391,7 +391,7 @@ namespace std { # ifdef BOOST_NO_INCLASS_MEMBER_INITIALIZATION # define BOOST_STATIC_CONSTANT(type, assignment) enum { assignment } # else -# define BOOST_STATIC_CONSTANT(type, assignment) static const type assignment +# define BOOST_STATIC_CONSTANT(type, assignment) BOOST_STATIC_CONSTEXPR type assignment # endif // BOOST_USE_FACET / HAS_FACET workaround ----------------------------------//