We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a23fa79 commit 4bcf556Copy full SHA for 4bcf556
clang-tools-extra/docs/clang-tidy/checks/bugprone/crtp-constructor-accessibility.rst
@@ -65,7 +65,8 @@ Example:
65
To ensure that no accidental instantiation happens, the best practice is to
66
make the constructor private and declare the derived class as friend. Note
67
that as a tradeoff, this also gives the derived class access to every other
68
-private members of the CRTP.
+private members of the CRTP. However, constructors can still be public or
69
+protected if they are deleted.
70
71
Example:
72
0 commit comments