diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2016-06-17 14:35:22 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2016-06-17 15:36:41 +0800 |
commit | ac79b551afd80d6874b4f9faefb38aa292ce2159 (patch) | |
tree | a5f3fbd5e44f1b62da85e5081fba0c84a40c907c | |
parent | e360dd12ef916b898e0088cccd84b25cc0be5aa3 (diff) | |
download | sigc++-ac79b551afd80d6874b4f9faefb38aa292ce2159.tar.gz |
Fix build of "Implement slot<R(Arg...)> with variadic template"
* sigc++/functors/macros/slot.h.m4: Fix the use of operator() in the
variadic templates usage in the base slot_call as the syntax differs
between compilers for this call. This fixes the build of the tests and
any items that makes use of sigc++/functors/slot.h on non-GCC,
specifically Visual Studio 2013 and 2015.
https://bugzilla.gnome.org/show_bug.cgi?id=767777
-rw-r--r-- | sigc++/functors/macros/slot.h.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sigc++/functors/macros/slot.h.m4 b/sigc++/functors/macros/slot.h.m4 index e0632e4..60cccbd 100644 --- a/sigc++/functors/macros/slot.h.m4 +++ b/sigc++/functors/macros/slot.h.m4 @@ -475,7 +475,7 @@ struct slot_call { using typed_slot = typed_slot_rep<T_functor>; typed_slot *typed_rep = static_cast<typed_slot*>(rep); - return (typed_rep->functor_).template operator()<type_trait_take_t<T_arg>...> + return (typed_rep->functor_).SIGC_WORKAROUND_OPERATOR_PARENTHESES<type_trait_take_t<T_arg>...> (a_...); } |