mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-22 20:05:31 +00:00
Avoid C++14 feature in peglib.h
... which allows to use peglib.h in a C++11 only environment.
This commit is contained in:
parent
86f903b65e
commit
f62a726166
2
peglib.h
2
peglib.h
@ -194,7 +194,7 @@ private:
|
||||
|
||||
template <typename EF>
|
||||
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<typename std::remove_reference<EF>::type>(std::forward<EF>(exit_function));
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user