<分区>
Possible Duplicate:
Does there exist a static_warning?
有没有办法在编译时实现非致命消息,就像 static_assert 在条件失败时所做的那样?在编译器遇到消息时始终显示一条消息是不够的,我希望它在例如实例化模板时显示。
<分区>
Possible Duplicate:
Does there exist a static_warning?
有没有办法在编译时实现非致命消息,就像 static_assert 在条件失败时所做的那样?在编译器遇到消息时始终显示一条消息是不够的,我希望它在例如实例化模板时显示。
最佳答案
会 BOOST_STATIC_WARNING为你工作?
关于c++ - static_message 或类似的东西,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9135502/
相关文章:
gcc - ICC 中 -fp-model fast=1 的 GCC/Clang 等价物是什么
c - 从以下代码中获取警告 "cast to pointer from integer of different size"
c++ - 与静态库链接时,为什么要强制执行命令(例如source.cxx -lstatic)?
c++ - 如何在 Pro*C 中保持较低的实现/维护成本?
c++ - 将 int32_t 类型定义为 int 是个好主意吗?
c++ - 为什么在分配给 const std::string 时会复制字符串文字?
c++ - std::filesystem::copy() 和 std::filesystem::copy_file() 有什么区别?