tlx
Loading...
Searching...
No Matches
constexpr.hpp
Go to the documentation of this file.
1/*******************************************************************************
2 * tlx/define/constexpr.hpp
3 *
4 * Part of tlx - http://panthema.net/tlx
5 *
6 * Copyright (C) 2021 Lorenz Hübschle-Schneider <lorenz@4z2.de>
7 *
8 * All rights reserved. Published under the Boost Software License, Version 1.0
9 ******************************************************************************/
10
11#ifndef TLX_DEFINE_CONSTEXPR_HEADER
12#define TLX_DEFINE_CONSTEXPR_HEADER
13
14namespace tlx {
15
16//! \addtogroup tlx_define
17//! \{
18
19#if __cplusplus >= 201402L
20 #define TLX_ADVANCED_CONSTEXPR constexpr
21#else
22 #define TLX_ADVANCED_CONSTEXPR inline
23#endif
24
25//! \}
26
27} // namespace tlx
28
29#endif // !TLX_DEFINE_CONSTEXPR_HEADER
30
31/******************************************************************************/