@@ -108,7 +108,7 @@ public:
108
108
<programlisting >
109
109
void warn_people()
110
110
{
111
- cout << "There are aliens in the carpark!" << endl;
111
+ std:: cout << "There are aliens in the carpark!" << std:: endl;
112
112
}
113
113
114
114
int main()
@@ -184,7 +184,7 @@ int main()
184
184
185
185
<para >It's possible to use a lambda expression instead of sigc::mem_fun(),
186
186
but it's not recommended, if the class derives from <literal remap =" tt" >sigc::trackable</literal >.
187
- With a lambda expression you would loose the automatic disconnection that the
187
+ With a lambda expression you would lose the automatic disconnection that the
188
188
combination of <literal remap =" tt" >sigc::trackable</literal > and sigc::mem_fun()
189
189
offers.</para >
190
190
</sect1 >
@@ -219,9 +219,10 @@ public:
219
219
here).</para >
220
220
221
221
<para >The name of the type is '<literal remap =" tt" >sigc::signal</literal >'.
222
- The template parameters are the return type, then the argument types in parentheses.
223
- (The parentheses are necessary in libsigc++3. If you use libsigc++2, the syntax
224
- is different, with a comma between return type and parameter types.)</para >
222
+ The template parameters are the return type, then the argument types in parentheses.
223
+ (The parentheses are necessary in libsigc++3. libsigc++2 also accepts a different
224
+ syntax, with a comma between the return type and the parameter types. That syntax is
225
+ deprecated, though.)</para >
225
226
226
227
<para >The types in the function signature are in the same order as the template
227
228
parameters, eg:</para >
@@ -237,7 +238,7 @@ sigc::signal<void(std::string)>
237
238
<programlisting >
238
239
void warn_people(std::string where)
239
240
{
240
- cout << "There are aliens in " << where << "!" << endl;
241
+ std:: cout << "There are aliens in " << where << "!" << std:: endl;
241
242
}
242
243
243
244
int main()
0 commit comments