Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macro used before it is defined #232

Open
alexios-angel opened this issue Nov 15, 2021 · 3 comments
Open

macro used before it is defined #232

alexios-angel opened this issue Nov 15, 2021 · 3 comments

Comments

@alexios-angel
Copy link

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))
@hanickadot
Copy link
Owner

In what version is the error?

@alexios-angel
Copy link
Author

alexios-angel commented Jan 13, 2022

In what version is the error?

The version released in April

95c6386

there is a clang warning called -Wundef that shows these mistakes

I would suggest using -Werror=undef

@alexios-angel
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants