compile-time-regular-expressions
compile-time-regular-expressions copied to clipboard
macro used before it is defined
trafficstars
There is a check for CTLL_CNTTP_COMPILER_CHECK, which hasn't been defined yet.
#if CTLL_CNTTP_COMPILER_CHECK
#define CTLL_FIXED_STRING ctll::fixed_string
#else
#define CTLL_FIXED_STRING const auto &
#endif
#endif
#ifndef CTLL__TYPE_STACK__HPP
#define CTLL__TYPE_STACK__HPP
#ifndef CTLL__UTILITIES__HPP
#define CTLL__UTILITIES__HPP
#include <type_traits>
#define CTLL_CNTTP_COMPILER_CHECK (__cpp_nontype_template_parameter_class || (__cpp_nontype_template_args >= 201911L) || (__cpp_nontype_template_args >= 201411L && __clang_major__ >= 12))
In what version is the error?
In what version is the error?
The version released in April
https://github.com/hanickadot/compile-time-regular-expressions/commit/95c63867bf0f6497825ef6cf44a7d0791bd25883
there is a clang warning called -Wundef that shows these mistakes
I would suggest using -Werror=undef
I think you might have already fixed it, I'll have to check later.