From 21f151cadb266bc6a10f09f3ac02ab4ca9fc999a Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 31 Mar 2021 15:23:40 +0200 Subject: [PATCH] tour:: slide_backup with 1 parameter --- tour.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tour.cpp b/tour.cpp index 68490278..3bf9c673 100644 --- a/tour.cpp +++ b/tour.cpp @@ -81,6 +81,8 @@ template void slide_backup(T& what, U value) { restorers.push_back([&what, backup] { what = backup; }); what = value; } + +template void slide_backup(T& what) { slide_backup(what, what); } #endif EX void on_restore(const reaction_t& t) {