Merge pull request #213 from Kojoley/patch-1

BOOST_STATIC_CONSTANT should use constexpr
This commit is contained in:
jzmaddock
2018-03-16 18:24:58 +00:00
committed by GitHub

View File

@ -391,7 +391,7 @@ namespace std {
# ifdef BOOST_NO_INCLASS_MEMBER_INITIALIZATION # ifdef BOOST_NO_INCLASS_MEMBER_INITIALIZATION
# define BOOST_STATIC_CONSTANT(type, assignment) enum { assignment } # define BOOST_STATIC_CONSTANT(type, assignment) enum { assignment }
# else # else
# define BOOST_STATIC_CONSTANT(type, assignment) static const type assignment # define BOOST_STATIC_CONSTANT(type, assignment) BOOST_STATIC_CONSTEXPR type assignment
# endif # endif
// BOOST_USE_FACET / HAS_FACET workaround ----------------------------------// // BOOST_USE_FACET / HAS_FACET workaround ----------------------------------//