#include using namespace Upp; void Do(const Vector& h) { LOG("Event invoked with " << h); } CONSOLE_APP_MAIN { Vector v; v << "Just" << "a" << "test"; Event<> ev1; ev1 << [v = clone(v)] { Do(v); }; DUMP(v); v << "2"; Event<> ev2; ev2 << [v = pick(v)] { Do(v); }; DUMP(v); ev1(); ev2(); }