mirror of
https://github.com/boostorg/config.git
synced 2025-07-31 04:47:16 +02:00
Merge pull request #316 from glenfe/develop
Add BOOST_INLINE_CONSTEXPR convenience macro
This commit is contained in:
@ -978,6 +978,7 @@ provide compliant C++17 support.
|
|||||||
[table
|
[table
|
||||||
[[Macro ][ Description ]]
|
[[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_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]
|
[endsect]
|
||||||
|
@ -1003,6 +1003,8 @@ namespace std{ using ::type_info; }
|
|||||||
#define BOOST_INLINE_VARIABLE
|
#define BOOST_INLINE_VARIABLE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define BOOST_INLINE_CONSTEXPR BOOST_INLINE_VARIABLE BOOST_CONSTEXPR_OR_CONST
|
||||||
|
|
||||||
//
|
//
|
||||||
// Unused variable/typedef workarounds:
|
// Unused variable/typedef workarounds:
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user