Skip to content

Commit

Permalink
doc: Fix docs according to clang-tidy modernize-use-equals-delete check
Browse files Browse the repository at this point in the history
edalm committed Dec 9, 2023
1 parent ba330d3 commit fc294e9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions doc/manual/source/new-models.rst
Original file line number Diff line number Diff line change
@@ -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.::

0 comments on commit fc294e9

Please sign in to comment.