I have a struct with these special member functions:
struct MyStruct {
MyStruct(MyStruct& other) = delete;
MyStruct(MyStruct&& other) = default;
explicit MyStruct(int num) noexcept(false);
explicit MyStruct(MyOtherStructType&& other_type);
~MyStruct();
auto operator=(MyStruct&& other) noexcept(false) -> MyStruct&;
}
clang tidy says:
Class 'MyStruct' defines a non-default destructor, a copy constructor, a move
constructor and a move assignment operator but does not define a copy assignment
operator
Due to the hicpp-special-member-functions/cppcoreguidelines-special-member-functions
lint, however I thought I deleted the copy constructor? Did I miss anything? Is the lint wrong?