1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-05-11 11:44:08 +00:00

fix to make it compile in C++11

This commit is contained in:
Zeno Rogue 2025-04-07 22:55:09 +02:00
parent 26e02ce148
commit e424832f70

View File

@ -1100,7 +1100,7 @@ template<class T> void rv_keep(T& variable) {
on_cleanup_or_next([backup, &variable] { variable = backup; });
}
template<class T, class U> auto autoclear_hook(hookset<T>& m, int prio, U&& hook) {
template<class T, class U> reaction_t autoclear_hook(hookset<T>& m, int prio, U&& hook) {
int p = addHook(m, prio, hook);
return [&m, p] { delHook(m, p); };
}