blob: 00134eb05484ce4c1862f5c23c805a370670061d [file] [log] [blame]
.. title:: clang-tidy - readability-deleted-default
Checks that constructors and assignment operators marked as ``= default`` are
not actually deleted by the compiler.
.. code-block:: c++
class Example {
// This constructor is deleted because I is missing a default value.
Example() = default;
// This is fine.
Example(const Example& Other) = default;
// This operator is deleted because I cannot be assigned (it is const).
Example& operator=(const Example& Other) = default;
const int I;