doc: Fix docs according to clang-tidy modernize-use-equals-delete check

This commit is contained in:
Eduardo Almeida
2023-12-05 17:26:15 +00:00
parent ba330d367f
commit fc294e9ed2

View File

@@ -324,9 +324,8 @@ Second, each class must implement a static public member function called
Third, it is a good idea to implement constructors and destructors rather than
to let the compiler generate them, and to make the destructor virtual. In C++,
note also that copy assignment operator and copy constructors are auto-generated
if they are not defined, so if you do not want those, you should implement those
as private members. This aspect of C++ is discussed in Scott Meyers' Effective
C++ book. item 45.
if they are not defined, so if you do not want those, you should declare them
as ``= delete``.
Let's now look at some corresponding skeletal implementation code in the .cc
file.::