lundi 26 septembre 2016

Using const std::unique_ptr for pimpl idiom

In Herb Sutter's talk at CppCon16 he suggested writing pimpl idiom with const std::unique_ptr (roughly 10 minutes in).

How is this suppose to work with move constructors/assignments? Is there smth in c++17? I couldn't find anything.

Aucun commentaire:

Enregistrer un commentaire