摘要:
assert是运行期断言,它用来发现运行期间的错误 stastic_assert为了弥补assert和error的不足,可以作编译期的静态检查 #include <iostream> int main() { static_assert(sizeof(char) == 2, "hello furon 阅读全文
posted @ 2022-09-02 16:47
thomas_blog
阅读(69)
评论(0)
推荐(0)
摘要:
#include <iostream> #include <memory> using namespace std; class Person { public: Person() { cout << "Person()构造" << endl; } ~Person() { cout << "~Per 阅读全文
posted @ 2022-09-02 16:06
thomas_blog
阅读(28)
评论(0)
推荐(0)

浙公网安备 33010602011771号