BitStream
Loading...
Searching...
No Matches
platform.h
Go to the documentation of this file.
1#pragma once
2
3#include <type_traits>
4
5#if defined(__cpp_lib_is_constant_evaluated) && __cpp_lib_is_constant_evaluated >= 201811L
6# define BS_CONST_EVALUATED() (std::is_constant_evaluated())
7# define BS_CONSTEXPR constexpr
8#else // __cpp_lib_is_constant_evaluated
9# define BS_CONST_EVALUATED() constexpr (false)
10# define BS_CONSTEXPR
11#endif // __cpp_lib_is_constant_evaluated