simplecpp icon indicating copy to clipboard operation
simplecpp copied to clipboard

failed to expand BOOST_MPL_AUX_NA_SPEC, Wrong number of parameters for macro BOOST_PP_TUPLE_ELEM

Open gdsotirov opened this issue 5 years ago • 23 comments

I wasn't sure whether to report this here or in cppcheck project, so please excuse me if I chose the wrong place.

I stumbled upon the following problem when running cppcheck 1.87 on a C++ source using Boost libraries:

[/usr/include/boost/preprocessor/arithmetic/sub.hpp:47]: (error) failed to expand 'BOOST_MPL_AUX_NA_SPEC', Wrong number of parameters for macro 'BOOST_PP_TUPLE_ELEM'.

I checked this post in the forum, but the error message is not exactly the same. I guess it changed after the fix of #125, but issue #126 is still open and I think #108 is also related to the problem, because the problematic Boost header include/boost/preprocessor/arithmetic/sub.hpp uses ## operator.

Can I somehow workaround the problem until it's fixed in a new cppcheck version?

gdsotirov avatar Mar 14 '19 12:03 gdsotirov