Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
问题在标题中。我在参考文档中找不到信息。我不明白为什么默认构造函数会抛出,但我需要确保正确记录我的异常保证是不抛出的。
请参阅http://www.boost.org/doc/libs/1_54_0/doc/html/boost/function.html#idp15443616-bb:它明确声明“不会抛出”。