mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2025-01-22 13:25:30 +00:00
Merge pull request #18 from g40/VS2013
VS2013 requires return type for auto
This commit is contained in:
commit
b7d114a82a
2
peglib.h
2
peglib.h
@ -193,7 +193,7 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
template <typename EF>
|
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));
|
return scope_exit<std::remove_reference_t<EF>>(std::forward<EF>(exit_function));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user