C++增强波,范围宏

发布于 2024-08-29 10:31:26 字数 107 浏览 7 评论 0原文

是否可以通过 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

痴情 2024-09-05 10:31:26

我怀疑 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文