insert callbacks to the back, so that will be invoked in the proper order

This commit is contained in:
Paolo Monteverde 2016-11-11 15:45:13 +01:00
parent 202d7f2c89
commit 2bbcffc2f3

View File

@ -46,11 +46,11 @@ class Emitter {
}
Connection once(Listener f) {
return { onceL, onceL.insert(onceL.cbegin(), std::move(f)) };
return { onceL, onceL.insert(onceL.cend(), std::move(f)) };
}
Connection on(Listener f) {
return { onL, onL.insert(onL.cbegin(), std::move(f)) };
return { onL, onL.insert(onL.cend(), std::move(f)) };
}
void erase(Connection conn) noexcept {