compile-time-regular-expressions icon indicating copy to clipboard operation
compile-time-regular-expressions copied to clipboard

macro used before it is defined

Open alexios-angel opened this issue 4 years ago • 3 comments
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))

alexios-angel avatar Nov 15 '21 03:11 alexios-angel

In what version is the error?

hanickadot avatar Jan 13 '22 09:01 hanickadot

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

alexios-angel avatar Jan 13 '22 15:01 alexios-angel

I think you might have already fixed it, I'll have to check later.

alexios-angel avatar Jan 13 '22 15:01 alexios-angel