You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I attempted here to provide the equivalence MyFunctorThisComparer predicate, that would filter out functors. In particular, it would know how to extract 'this' pointer from MyFunctor. However, it could be a more generic predicate.
Boost 1.72.0. However, I have checked the development version - it has the same lines there, so the issue is still present.
The text was updated successfully, but these errors were encountered:
I've never given much thought to allowing for the SlotFunction to be anything other than boost::function or std::function, although I do remember considering dropping the SlotFunction template parameter entirely. Recent changes to support c++20 means operator== won't even be used in the future (it uses the "contains" method instead). I guess it might be possible to get rid of the "target" call and just rely on "contains".
Using custom functor, Signals fail to compile with:
signal_template.hpp(537,50): error C2059: syntax error: 'template'
Here:
The reason behind is that the signal expects the functor to be the boost::function / std::function, that would contain the target() method.
Minimal example:
I attempted here to provide the equivalence MyFunctorThisComparer predicate, that would filter out functors. In particular, it would know how to extract 'this' pointer from MyFunctor. However, it could be a more generic predicate.
Boost 1.72.0. However, I have checked the development version - it has the same lines there, so the issue is still present.
The text was updated successfully, but these errors were encountered: