Skip to content

Commit 0e946be

Browse files
Sebastien PonceSebastien Ponce
authored andcommitted
Mention that static methods cannot use this keyword
1 parent da3d08a commit 0e946be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

talk/objectorientation/advancedoo.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
\item Sometimes we need the address of the current object
88
\item Or we need to pass our address / a reference to a different entity
99
(for example to implement operators, see later)
10-
\item All class methods can use the keyword \cppinline{this}
10+
\item All non static class methods can use the keyword \cppinline{this}
1111
\begin{itemize}
1212
\item It returns the address of the current object
1313
\item Its type is \cppinline{T*} in the methods of a class {\ttfamily T}

0 commit comments

Comments
 (0)