1.. title:: clang-tidy - readability-deleted-default 2 3readability-deleted-default 4=========================== 5 6Checks that constructors and assignment operators marked as ``= default`` are 7not actually deleted by the compiler. 8 9.. code-block:: c++ 10 11 class Example { 12 public: 13 // This constructor is deleted because I is missing a default value. 14 Example() = default; 15 // This is fine. 16 Example(const Example& Other) = default; 17 // This operator is deleted because I cannot be assigned (it is const). 18 Example& operator=(const Example& Other) = default; 19 20 private: 21 const int I; 22 }; 23