Skip to content

Commit 25ea4e0

Browse files
committed
add LIBIMP_INLINE_CONSTEXPR
1 parent 65cb048 commit 25ea4e0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

include/libimp/detect_plat.h

+8
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,14 @@
106106
# error "This C++ version is unsupported."
107107
#endif
108108

109+
/// \brief Feature cross-platform adaptation.
110+
111+
#if defined(LIBIMP_CPP_17)
112+
# define LIBIMP_INLINE_CONSTEXPR inline constexpr
113+
#else
114+
# define LIBIMP_INLINE_CONSTEXPR constexpr
115+
#endif
116+
109117
/// \brief C++ attributes.
110118
/// \see https://en.cppreference.com/w/cpp/language/attributes
111119

0 commit comments

Comments
 (0)