Reference parameter being copied in variadic template
问题 I have an Event class that stores a set of tuples of weak_ptr (the observer) to a function that gets executed when the event is "fired". The function type is: void(int &) in the example. That is to say, I want to fire the event passing a reference to a value, to have the observer change that value and to verify that the value was changed back in the observed object. The event implementation is variadic by the way, which may complicate the issue (at least the code). At the moment this is