[libsigc++2/variadic] retype_functor: Make the slot version variadic.



commit be4818e39e1c8dfa49d0947e9f1c2a57acf8ef22
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Jan 7 22:00:38 2016 +0100

    retype_functor: Make the slot version variadic.

 sigc++/adaptors/macros/retype.h.m4 |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/sigc++/adaptors/macros/retype.h.m4 b/sigc++/adaptors/macros/retype.h.m4
index 0974a14..b35edfe 100644
--- a/sigc++/adaptors/macros/retype.h.m4
+++ b/sigc++/adaptors/macros/retype.h.m4
@@ -182,10 +182,10 @@ struct visitor<retype_functor<LIST(T_functor, LOOP(T_type%1, CALL_SIZE))> >
  *
  * @ingroup retype
  */
-template <LIST(class T_return, LOOP(class T_arg%1, CALL_SIZE))>
-inline retype_functor<LIST(slot<LIST(T_return, LOOP(T_arg%1, CALL_SIZE))>, LOOP(T_arg%1, CALL_SIZE)) >
-retype(const slot<LIST(T_return, LOOP(T_arg%1, CALL_SIZE))>& _A_functor)
-{ return retype_functor<LIST(slot<LIST(T_return, LOOP(T_arg%1, CALL_SIZE))>, LOOP(T_arg%1, CALL_SIZE)) >
+template <LIST(class T_return, class... T_arg)>
+inline retype_functor<slot<T_return, T_arg...>, T_arg...>
+retype(const slot<T_return, T_arg...>& _A_functor)
+{ return retype_functor<slot<T_return, T_arg...>, T_arg...>
     (_A_functor); }
 
 


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