add LIBIMP_INLINE_CONSTEXPR

This commit is contained in:
mutouyun 2024-09-28 20:41:23 +08:00
parent 65cb048f59
commit 25ea4e016c

View File

@ -106,6 +106,14 @@
# error "This C++ version is unsupported."
#endif
/// \brief Feature cross-platform adaptation.
#if defined(LIBIMP_CPP_17)
# define LIBIMP_INLINE_CONSTEXPR inline constexpr
#else
# define LIBIMP_INLINE_CONSTEXPR constexpr
#endif
/// \brief C++ attributes.
/// \see https://en.cppreference.com/w/cpp/language/attributes