File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
SoftwareGuide/Latex/Appendices Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -1506,6 +1506,19 @@ \section{Initialization and Assignment}
15061506\end {minted }
15071507\normalsize
15081508
1509+ Nevertheless, there may be some exceptions to the initialization list rule. In
1510+ some situations where it can be foreseen that the corresponding
1511+ \code {Set\#\# name} or \code {\#\# nameOn}/\code {\#\# nameOff} may be
1512+
1513+ \begin {itemize }
1514+ \item overloaded by some classes in the future, or
1515+ \item deprecated, and a warning thrown when it is called to help migration,
1516+ \end {itemize }
1517+
1518+ initialization through the corresponding \code {Set\#\# name} or
1519+ \code {\#\# nameOn}/\code {\#\# nameOff} method is recommended instead of directly
1520+ manipulating the data member.
1521+
15091522Smart pointers need not to be initialized, since they initialize themselves
15101523to the \code {null} pointer, so they are the sole exception to the above rule.
15111524
You can’t perform that action at this time.
0 commit comments