Top "Deleted-functions" questions

C++11 introduced the ability to mark member functions as deleted, which means that any attempt to call those functions causes a compilation error.

error: use of deleted function

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-functions
How is "=default" different from "{}" for default constructor and destructor?

I 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-functions
Default move constructor/assignment and deleted copy constructor/assignment

According to the standard, If the definition of a class X does not explicitly declare a move constructor, one will …

c++ move-semantics deleted-functions