concept_check icon indicating copy to clipboard operation
concept_check copied to clipboard

Tons of errors in concept_check.hpp using VS 2022

Open Sil3ntStorm opened this issue 3 years ago • 2 comments

There are about a million (slight exaggeration) errors in concept_check.hpp, such as:

identifier "BOOST_PP_IIF_BOOST_PP_BOOL_" is undefined concept_check.hpp:70
type name is not allowed concept_check.hpp:80
too few arguments for class template "boost::Integer" concept_check.hpp:80

These are repeated for basically every usage of the BOOST_concept macro in concept_check.hpp. The line number obviously changes.

Sil3ntStorm avatar Mar 03 '23 15:03 Sil3ntStorm

There are about a million (slight exaggeration) errors in concept_check.hpp, such as:

identifier "BOOST_PP_IIF_BOOST_PP_BOOL_" is undefined concept_check.hpp:70
type name is not allowed concept_check.hpp:80
too few arguments for class template "boost::Integer" concept_check.hpp:80

These are repeated for basically every usage of the BOOST_concept macro in concept_check.hpp. The line number obviously changes.

I was able to solve this problem by changing one of the C/C++ Preprocessor properties for my project. Under the C/C++ dropdown, select Preprocessor and go to the "Use Standard Conforming Preprocessor", select "Yes (/Zc:preprocessor)". All errors I encountered with the concept_check macros were resolved after applying.

ZeroXeroZyro avatar Mar 03 '23 22:03 ZeroXeroZyro

Thank you, it wok for me as well. Problem solved.

PCzachoA avatar Mar 16 '23 09:03 PCzachoA