C++增强波,范围宏
是否可以通过 boost wave 使用自定义宏来设置作用域宏? 我知道 C++0x 应该可以,但是我正在使用常规 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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我怀疑 Wave 不再支持宏作用域。较旧的文档,例如:
实验性地讨论对宏作用域的支持,但我在较新的文档中找不到任何提及它:
看起来宏作用域被排除在 C++0x 之外;我不确定它是否仍在被任何人使用,或者是否已被完全放弃。查看 Boost Wave 的变更日志,看起来对作用域宏的支持已从 2004 年 8 月的版本 1.1.7 中删除。
I suspect that Wave doesn't support macro scoping anymore. Older documents such as:
Discuss support for macro scoping experimentally, but I can't find any mention of it in the newer docs:
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.