From be0ad3726368470a521fa72f394689852791cd48 Mon Sep 17 00:00:00 2001 From: Jerry Evans Date: Tue, 8 Dec 2015 16:46:31 +0000 Subject: [PATCH] VS2013 requires return type for auto --- peglib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peglib.h b/peglib.h index 30ff2c2..1089046 100644 --- a/peglib.h +++ b/peglib.h @@ -193,7 +193,7 @@ private: }; template -auto make_scope_exit(EF&& exit_function) { +auto make_scope_exit(EF&& exit_function) -> scope_exit { return scope_exit>(std::forward(exit_function)); }