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.
似乎它从未发生在任何人身上,所以我想我做错了什么......我得到的错误是:
error: expected ';' at end of member declaration error: 'noexcept' does not name a type
代码是这样的:
void* operator new (size_t size) noexcept {return foo(size);}
如果重要的话,代码实际上也在宏中。
谢谢!