aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--c/common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/common.h b/c/common.h
index efaa800..7d3f8bd 100644
--- a/c/common.h
+++ b/c/common.h
@@ -66,7 +66,7 @@ inline auto throw_nil(T... args)
template <auto f, class... T>
inline auto warn_nil(T... args)
{
- decltype(f(args...)) r;
+ decltype(f(std::declval<T>()...)) r;
try {
r = throw_nil<f>(args...);
} catch (Win32Error& e) {