Skip to content

Commit c0d4c0a

Browse files
committed
docs/docs/manual/libsigc_manual.xml: Fix previous commit
Correct the comment about libsigc++2. It accepts both sigc::signal<void,int> and sigc::signal<void(int)>. sigc::signal<void,int> is deprecated.
1 parent 85be346 commit c0d4c0a

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

docs/docs/manual/libsigc_manual.xml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public:
108108
<programlisting>
109109
void warn_people()
110110
{
111-
cout &lt;&lt; "There are aliens in the carpark!" &lt;&lt; endl;
111+
std::cout &lt;&lt; "There are aliens in the carpark!" &lt;&lt; std::endl;
112112
}
113113

114114
int main()
@@ -184,7 +184,7 @@ int main()
184184

185185
<para>It's possible to use a lambda expression instead of sigc::mem_fun(),
186186
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
188188
combination of <literal remap="tt">sigc::trackable</literal> and sigc::mem_fun()
189189
offers.</para>
190190
</sect1>
@@ -219,9 +219,10 @@ public:
219219
here).</para>
220220

221221
<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>
225226

226227
<para>The types in the function signature are in the same order as the template
227228
parameters, eg:</para>
@@ -237,7 +238,7 @@ sigc::signal&lt;void(std::string)&gt;
237238
<programlisting>
238239
void warn_people(std::string where)
239240
{
240-
cout &lt;&lt; "There are aliens in " &lt;&lt; where &lt;&lt; "!" &lt;&lt; endl;
241+
std::cout &lt;&lt; "There are aliens in " &lt;&lt; where &lt;&lt; "!" &lt;&lt; std::endl;
241242
}
242243

243244
int main()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy