Skip to content

Commit ecd2e3a

Browse files
author
Hana Dusíková
committed
fix clang 12/13 c++17 mode
1 parent f1e91de commit ecd2e3a

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

include/ctll/utilities.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
#elif __cpp_nontype_template_args >= 201411L
1212
#if defined __clang_major__ && __clang_major__ >= 12
1313
#if !defined __apple_build_version__ || !__apple_build_version__
14-
#define CTLL_CNTTP_COMPILER_CHECK 1
14+
#if __cplusplus > 201703L
15+
#define CTLL_CNTTP_COMPILER_CHECK 1
16+
#endif
1517
#endif
1618
#endif
1719
#endif

single-header/ctre-unicode.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,9 @@ template <size_t N> fixed_string(fixed_string<N>) -> fixed_string<N>;
462462
#elif __cpp_nontype_template_args >= 201411L
463463
#if defined __clang_major__ && __clang_major__ >= 12
464464
#if !defined __apple_build_version__ || !__apple_build_version__
465-
#define CTLL_CNTTP_COMPILER_CHECK 1
465+
#if __cplusplus > 201703L
466+
#define CTLL_CNTTP_COMPILER_CHECK 1
467+
#endif
466468
#endif
467469
#endif
468470
#endif

single-header/ctre.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,9 @@ template <size_t N> fixed_string(fixed_string<N>) -> fixed_string<N>;
459459
#elif __cpp_nontype_template_args >= 201411L
460460
#if defined __clang_major__ && __clang_major__ >= 12
461461
#if !defined __apple_build_version__ || !__apple_build_version__
462-
#define CTLL_CNTTP_COMPILER_CHECK 1
462+
#if __cplusplus > 201703L
463+
#define CTLL_CNTTP_COMPILER_CHECK 1
464+
#endif
463465
#endif
464466
#endif
465467
#endif

0 commit comments

Comments
 (0)