开发者

C++ boost wave, scoped macro

开发者 https://www.devze.com 2022-12-27 12:25 出处:网络
Is it possible to have scoped macros using custom defined macros through boost wave? I know it should a possible withC++0x however I am working with regular C++.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号