userver: userver/compiler/impl/constexpr.hpp Source File
Loading...
Searching...
No Matches
constexpr.hpp
1#pragma once
2
3#if __cpp_consteval >= 201811L ||
4 ((__GNUC__ >= 10 || __clang_major__ >= 14) && __cplusplus >= 202002L)
5#define USERVER_IMPL_CONSTEVAL consteval
6#else
7#define USERVER_IMPL_CONSTEVAL constexpr
8#endif
9
10#if __cpp_constinit >= 201907L
11#define USERVER_IMPL_CONSTINIT constinit
12#else
13#define USERVER_IMPL_CONSTINIT
14#endif