static_message 或类似的东西
可能的重复:
是否存在 static_warning?
有没有办法在编译时间就像 static_assert 在其条件失败时所做的那样?当编译器遇到消息时始终显示一条消息是不够的,我希望它在实例化模板时显示。
Possible Duplicate:
Does there exist a static_warning?
Is there a way to implement non fatal messages at compile time just like static_assert do when its condition fail? Having a message that shows up always when the compiler encounters it is not enough, I want it to show up when, for example, a template is instantiated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
BOOST_STATIC_WARNING 对您有用吗?
Would BOOST_STATIC_WARNING work for you?