BOOST_STATIC_CONSTANT should use constexpr

This commit is contained in:
Nikita Kniazev
2018-02-24 20:17:36 +03:00
committed by GitHub
parent f68542269a
commit 51f1178921

View File

@ -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 ----------------------------------//