Skip to content

Commit ac79b55

Browse files
committed
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
1 parent e360dd1 commit ac79b55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sigc++/functors/macros/slot.h.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ struct slot_call
475475
{
476476
using typed_slot = typed_slot_rep<T_functor>;
477477
typed_slot *typed_rep = static_cast<typed_slot*>(rep);
478-
return (typed_rep->functor_).template operator()<type_trait_take_t<T_arg>...>
478+
return (typed_rep->functor_).SIGC_WORKAROUND_OPERATOR_PARENTHESES<type_trait_take_t<T_arg>...>
479479
(a_...);
480480
}
481481

0 commit comments

Comments
 (0)