diff options
author | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2020-06-26 16:42:22 +0200 |
---|---|---|
committer | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2020-06-26 16:42:22 +0200 |
commit | c0d4c0a4ded40a068107c42f2ae6413f6bb40855 (patch) | |
tree | 8839eaa298617d815c4d2fa1ea9f9673577f208b | |
parent | 85be346d51501ae2caff4bb19f55b09f683d311c (diff) | |
download | sigc++-c0d4c0a4ded40a068107c42f2ae6413f6bb40855.tar.gz |
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.
-rw-r--r-- | docs/docs/manual/libsigc_manual.xml | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/docs/docs/manual/libsigc_manual.xml b/docs/docs/manual/libsigc_manual.xml index ea3f2e8..fde9257 100644 --- a/docs/docs/manual/libsigc_manual.xml +++ b/docs/docs/manual/libsigc_manual.xml @@ -108,7 +108,7 @@ public: <programlisting> void warn_people() { - cout << "There are aliens in the carpark!" << endl; + std::cout << "There are aliens in the carpark!" << std::endl; } int main() @@ -184,7 +184,7 @@ int main() <para>It's possible to use a lambda expression instead of sigc::mem_fun(), but it's not recommended, if the class derives from <literal remap="tt">sigc::trackable</literal>. - With a lambda expression you would loose the automatic disconnection that the + With a lambda expression you would lose the automatic disconnection that the combination of <literal remap="tt">sigc::trackable</literal> and sigc::mem_fun() offers.</para> </sect1> @@ -219,9 +219,10 @@ public: here).</para> <para>The name of the type is '<literal remap="tt">sigc::signal</literal>'. - The template parameters are the return type, then the argument types in parentheses. - (The parentheses are necessary in libsigc++3. If you use libsigc++2, the syntax - is different, with a comma between return type and parameter types.)</para> + The template parameters are the return type, then the argument types in parentheses. + (The parentheses are necessary in libsigc++3. libsigc++2 also accepts a different + syntax, with a comma between the return type and the parameter types. That syntax is + deprecated, though.)</para> <para>The types in the function signature are in the same order as the template parameters, eg:</para> @@ -237,7 +238,7 @@ sigc::signal<void(std::string)> <programlisting> void warn_people(std::string where) { - cout << "There are aliens in " << where << "!" << endl; + std::cout << "There are aliens in " << where << "!" << std::endl; } int main() |