Is it possible to have scoped macros using custom defined macros through boost wave? I know it should a possible with C++0x however I am working with regular C++. If it is possible, can you provide link开发者_开发百科 or reference how to accomplish this?
Thanks
I suspect that Wave doesn't support macro scoping anymore. Older documents such as:
- http://boost-spirit.com/old_docs/wave_v0_9/preliminary_cpp0x_support.html#macro_scoping
Discuss support for macro scoping experimentally, but I can't find any mention of it in the newer docs:
- http://www.boost.org/doc/libs/1_42_0/libs/wave/index.html
- http://www.boost.org/doc/libs/1_42_0/libs/wave/doc/wave_driver.html
It appears that macro scoping is being left out of C++0x; I'm not sure if it's still being worked by anyone, or if it's been dropped altogether. Looking at the changelog for Boost Wave, it looks like support for scoped macros was removed from Version 1.1.7 in Aug 2004.
精彩评论