[libsigcplusplus] docs: signal_base/exception_catch: Use signal<R(Args...)> syntax.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsigcplusplus] docs: signal_base/exception_catch: Use signal<R(Args...)> syntax.
- Date: Wed, 16 Mar 2016 11:41:10 +0000 (UTC)
commit 81b64007c7f26527417a8145cdcbde7bafb78127
Author: Murray Cumming <murrayc murrayc com>
Date: Wed Mar 16 10:55:18 2016 +0100
docs: signal_base/exception_catch: Use signal<R(Args...)> syntax.
sigc++/adaptors/exception_catch.h | 2 +-
sigc++/signal_base.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/sigc++/adaptors/exception_catch.h b/sigc++/adaptors/exception_catch.h
index 4080700..5948a66 100644
--- a/sigc++/adaptors/exception_catch.h
+++ b/sigc++/adaptors/exception_catch.h
@@ -47,7 +47,7 @@ namespace sigc {
*
* @par Example:
* @code
- * sigc::signal<int> some_signal;
+ * sigc::signal<int()> some_signal;
* some_signal.connect(sigc::exception_catch(&foo, my_catch));
* @endcode
*
diff --git a/sigc++/signal_base.h b/sigc++/signal_base.h
index a0e2037..bf79dd5 100644
--- a/sigc++/signal_base.h
+++ b/sigc++/signal_base.h
@@ -265,7 +265,7 @@ private:
* class MyClass
* {
* public:
- * using MySignalType = sigc::signal<void>;
+ * using MySignalType = sigc::signal<void()>;
* MySignalType get_my_signal() { return m_my_signal; }
* private:
* MySignalType m_my_signal;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]