C++11 introduced the ability to mark member functions as deleted, which means that any attempt to call those functions causes a compilation error.
I've been working on some C++ code that a friend has written and I get the following error that I …
c++ gcc g++ c++11 deleted-functionsI originally posted this as a question only about destructors, but now I'm adding consideration of the default constructor. Here's …
c++ c++11 user-defined-functions default-constructor deleted-functionsAccording to the standard, If the definition of a class X does not explicitly declare a move constructor, one will …
c++ move-semantics deleted-functionsI have a use case that my object must not be copied in any way. I have written an exaggerated …
c++ copy-constructor copy-assignment deleted-functions implicit-methodsHow can I initialize an array without copy or move-constructing temporary elements? When the element has an explicitly deleted copy …
c++ arrays in-place copy-elision deleted-functions