tour:: slide_backup with 1 parameter

This commit is contained in:
Zeno Rogue 2021-03-31 15:23:40 +02:00
parent 22c3bf8821
commit 21f151cadb
1 changed files with 2 additions and 0 deletions

View File

@ -81,6 +81,8 @@ template<class T, class U> void slide_backup(T& what, U value) {
restorers.push_back([&what, backup] { what = backup; });
what = value;
}
template<class T> void slide_backup(T& what) { slide_backup(what, what); }
#endif
EX void on_restore(const reaction_t& t) {