boostorg / wave

Boost.org wave module
http://boost.org/libs/wave
21 stars 49 forks source link

turning off 'include_next' support breaks includes #54

Closed jefftrull closed 4 years ago

jefftrull commented 4 years ago

This is a port of TRAC 9874. The original text reads:

The directive '#if BOOST_WAVE_SUPPORT_INCLUDE_NEXT !+ 0" in file cpp_re2_lexer.hpp is in the wrong place, and causes all #include processing to break if BOOST_WAVE_SUPPORT_INCLUDE_NEXT is set to 0.

I've attached a simple patch. wave.2.patch

jefftrull commented 4 years ago

I (@jefftrull ) reproduced this problem and also verified the patch fixes it. The attached test code produces the message caught exception: error: ill formed #include directive: #include when BOOST_WAVE_SUPPORT_INCLUDE_NEXT is defined as 0. trac9874.cpp

jefftrull commented 4 years ago

Closing thanks to merged fix