[libsigcplusplus] docs: slot_base: Use slot<R(Args...)> syntax.



commit c153eb012cfeb39fd30087f76af0589f592463c3
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Mar 16 10:52:56 2016 +0100

    docs: slot_base: Use slot<R(Args...)> syntax.

 sigc++/functors/slot_base.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/sigc++/functors/slot_base.h b/sigc++/functors/slot_base.h
index 5dd9098..cd130c1 100644
--- a/sigc++/functors/slot_base.h
+++ b/sigc++/functors/slot_base.h
@@ -189,11 +189,11 @@ struct SIGC_API slot_do_unbind
  *
  * Use the sigc::mem_fun() and sigc::ptr_fun() template functions to get a sigc::slot, like so:
  * @code
- * sigc::slot<void, int> sl = sigc::mem_fun(someobj, &SomeClass::somemethod);
+ * sigc::slot<void(int)> sl = sigc::mem_fun(someobj, &SomeClass::somemethod);
  * @endcode
  * or
  * @code
- * sigc::slot<void, int> sl = sigc::ptr_fun(&somefunction);
+ * sigc::slot<void(int)> sl = sigc::ptr_fun(&somefunction);
  * @endcode
  * or, in gtkmm,
  * @code
@@ -207,7 +207,7 @@ struct SIGC_API slot_do_unbind
  * sigc::mem_fun() and sigc::ptr_fun() return functors, but those functors are
  * not slots.
  * @code
- * sigc::slot<void, int> sl = sigc::mem_fun(someobj, &SomeClass::somemethod);
+ * sigc::slot<void(int)> sl = sigc::mem_fun(someobj, &SomeClass::somemethod);
  * @endcode
  * is not equivalent to
  * @code


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]