#include <memory> #include <iostream> int main() { auto_ptr <int>(); return 0; }
这段代码在 c++17 环境不报错,在 c++20 环境报错……
c++17
c++20