Effective STL Terms 8: Don't put auto

xiaoxiao2021-03-06  38

I didn't plan to translate my own translation of Effective STL, afraid of affecting everyone :), just find some terms can't be found on the Internet, I have to translate myself. --Winter

In context, this clause should not be added, because the container containing ATUO_PTR is originally prohibited in STL. Even if you use it, the compiler will not compile your code. The Standards Committee did not explain why it is not possible. I should not say anything for COAPS, because your compiler should do everything for you, all such similar code should not be compiled.

Read more "Effective STL Terms 8: Don't put auto_ptrs into the container"

转载请注明原文地址:https://www.9cbs.com/read-71517.html

New Post(0)