aboutsummaryrefslogtreecommitdiff
path: root/lib/function_traits.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/function_traits.cpp')
-rw-r--r--lib/function_traits.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/function_traits.cpp b/lib/function_traits.cpp
index 6542101a..e3d27122 100644
--- a/lib/function_traits.cpp
+++ b/lib/function_traits.cpp
@@ -7,6 +7,9 @@
using namespace Quotient;
+template <typename FnT>
+using fn_return_t = typename function_traits<FnT>::return_type;
+
int f_();
static_assert(std::is_same_v<fn_return_t<decltype(f_)>, int>,
"Test fn_return_t<>");