move CPP20 constexpr to compat
parent
8d2bb93b2d
commit
827ee4bd55
|
@ -21,9 +21,11 @@
|
|||
|
||||
#if __cplusplus >= 202002L
|
||||
#define BLT_CONTAINS(container, value) container.contains(value)
|
||||
#define BLT_CPP20_CONSTEXPR constexpr
|
||||
#else
|
||||
#include <algorithm>
|
||||
#define BLT_CONTAINS(container, value) std::find(container.begin(), container.end(), value) != container.end()
|
||||
#define BLT_CPP20_CONSTEXPR
|
||||
#endif
|
||||
|
||||
#define INCLUDE_FS \
|
||||
|
|
|
@ -13,12 +13,7 @@
|
|||
#include <algorithm>
|
||||
#include <vector>
|
||||
#include <cctype>
|
||||
|
||||
#if __cplusplus >= 202002L
|
||||
#define BLT_CPP20_CONSTEXPR constexpr
|
||||
#else
|
||||
#define BLT_CPP20_CONSTEXPR
|
||||
#endif
|
||||
#include <blt/compatibility.h>
|
||||
|
||||
namespace blt::string
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue