From fc294e9ed2a85b8c87e0dc69e971999d4aea639a Mon Sep 17 00:00:00 2001 From: Eduardo Almeida Date: Tue, 5 Dec 2023 17:26:15 +0000 Subject: [PATCH] doc: Fix docs according to clang-tidy modernize-use-equals-delete check --- doc/manual/source/new-models.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/doc/manual/source/new-models.rst b/doc/manual/source/new-models.rst index 5f88b6c23..7c0cb6d01 100644 --- a/doc/manual/source/new-models.rst +++ b/doc/manual/source/new-models.rst @@ -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.::