exception: Fix compiling for c++17
auto&& as an argument is not allowed until c++20
Change-Id: Iae5336ff55151612ffdf8651e9f66fd0a4603855
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/src/stdplus/exception.hpp b/src/stdplus/exception.hpp
index 7b300f6..b0c7811 100644
--- a/src/stdplus/exception.hpp
+++ b/src/stdplus/exception.hpp
@@ -25,7 +25,8 @@
Eof(const std::string& what);
};
-auto ignore(auto&& f, const char* file = __builtin_FILE(),
+template <typename F>
+auto ignore(F&& f, const char* file = __builtin_FILE(),
int line = __builtin_LINE(),
const char* func = __builtin_FUNCTION())
{