VS2013 requires return type for auto

This commit is contained in:
Jerry Evans 2015-12-08 16:46:31 +00:00
parent fe9141fd0f
commit be0ad37263

View File

@ -193,7 +193,7 @@ private:
};
template <typename EF>
auto make_scope_exit(EF&& exit_function) {
auto make_scope_exit(EF&& exit_function) -> scope_exit<EF> {
return scope_exit<std::remove_reference_t<EF>>(std::forward<EF>(exit_function));
}