Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 70db547

Browse files
authored
Merge pull request #165 from bernhardmgruber/fixes
Two small fixes and a rename
2 parents 3a08132 + 4927207 commit 70db547

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

‎talk/objectorientation/constructors.tex‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,11 +274,11 @@
274274
struct B {
275275
int a;
276276
float b;
277-
// no constructor declared!
277+
// no constructor
278278
};
279279
\end{cppcode*}
280280
\end{multicols}
281-
\begin{cppcode*}{gobble=2, firstnumber=12}
281+
\begin{cppcode*}{gobble=2, firstnumber=13}
282282
A a{1,2}; // A::A(int, int)
283283
A a{1}; // A::A(int)
284284
A a{}; // A::A()
@@ -307,11 +307,11 @@
307307
struct B {
308308
int a;
309309
float b;
310-
// no constructor declared!
310+
// no constructor
311311
};
312312
\end{cppcode*}
313313
\end{multicols}
314-
\begin{cppcode*}{gobble=2, firstnumber=12}
314+
\begin{cppcode*}{gobble=2, firstnumber=13}
315315
A a(1,2); // A::A(int, int)
316316
A a(1); // A::A(int)
317317
A a(); // declaration of a function !

‎talk/objectorientation/static.tex‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
public:
1515
static std::string upper(std::string) {...}
1616
private:
17-
static int s_nbCallsToUpper; // add `inline` in C++17
17+
static int callsToUpper; // add `inline` in C++17
1818
};
19-
int Text::s_nbCallsToUpper = 0; // required before C++17
19+
int Text::callsToUpper = 0; // required before C++17
2020
std::string uppers = Text::upper("my text");
21-
// now Text::s_nbCallsToUpper is 1
21+
// now Text::callsToUpper is 1
2222
\end{cppcode}
2323
\end{frame}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /