From 947571e21451d35ee6a0e067c43e6d8320a2ed72 Mon Sep 17 00:00:00 2001 From: Glen Fernandes Date: Wed, 1 Jan 2020 13:10:17 -0500 Subject: [PATCH] Add BOOST_INLINE_CONSTEXPR convenience macro --- doc/macro_reference.qbk | 1 + include/boost/config/detail/suffix.hpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/doc/macro_reference.qbk b/doc/macro_reference.qbk index 277b9d36..d8975729 100644 --- a/doc/macro_reference.qbk +++ b/doc/macro_reference.qbk @@ -978,6 +978,7 @@ provide compliant C++17 support. [table [[Macro ][ Description ]] [[`BOOST_INLINE_VARIABLE`][This macro expands to `inline` on compilers that support C++17 inline variables and to nothing otherwise. Users may need to check for `BOOST_NO_CXX17_INLINE_VARIABLES` for further adjustments to the code.]] +[[`BOOST_INLINE_CONSTEXPR`][This is a shortcut for `BOOST_INLINE_VARIABLE BOOST_CONSTEXPR_OR_CONST`.]] ] [endsect] diff --git a/include/boost/config/detail/suffix.hpp b/include/boost/config/detail/suffix.hpp index 9131cba4..48069064 100644 --- a/include/boost/config/detail/suffix.hpp +++ b/include/boost/config/detail/suffix.hpp @@ -1003,6 +1003,8 @@ namespace std{ using ::type_info; } #define BOOST_INLINE_VARIABLE #endif +#define BOOST_INLINE_CONSTEXPR BOOST_INLINE_VARIABLE BOOST_CONSTEXPR_OR_CONST + // // Unused variable/typedef workarounds: //