From a19ce3763468879df0548d6c803e54f8fd1a13cc Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 3 May 2018 08:13:45 +1000 Subject: [PATCH] Tweak the way register restorers are created to try to fix OSX compilation --- src/commands.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/commands.cc b/src/commands.cc index a158b2c5..6907344b 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -1566,8 +1566,9 @@ void context_wrap(const ParametersParser& parser, Context& context, Func func) RegisterManager::instance()[c].set(context, save); }); }; - auto saved_registers = parser.get_switch("save-regs").value_or("/\"|^@") | - transform(make_register_restorer) | gather>(); + Vector saved_registers; + for (auto c : parser.get_switch("save-regs").value_or("/\"|^@")) + saved_registers.push_back(make_register_restorer(c)); if (auto bufnames = parser.get_switch("buffer")) {