We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6d31c5 commit 6f180c8Copy full SHA for 6f180c8
include/ctre/literals.hpp
@@ -31,8 +31,14 @@ namespace literals {
31
#ifdef __INTEL_COMPILER
32
// not enable literals
33
#elif defined __GNUC__
34
-#if not(__GNUC__ == 9)
+#if __GNUC__ < 9
35
#define CTRE_ENABLE_LITERALS
36
+#elif __GNUC__ >= 10
37
+#if !(__cpp_nontype_template_parameter_class || (__cpp_nontype_template_args >= 201911L))
38
+// newer versions of GCC will give error when trying to use GNU extension
39
+#else
40
+#define CTRE_ENABLE_LITERALS
41
+#endif
42
#endif
43
44
0 commit comments