We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fcf385 commit b8d38f8Copy full SHA for b8d38f8
trompeloeil.hpp
@@ -915,7 +915,7 @@ namespace trompeloeil
915
call_modifier<Matcher, return_injector<return_of_t<signature>, Parent > >
916
handle_return(H&& h)
917
{
918
- using ret = decltype(h(std::declval<call_params_type_t<signature>& >()));
+ using ret = typename std::result_of<H(call_params_type_t<signature>&)>::type;
919
static_assert(std::is_constructible<return_of_t<signature>, ret>::value
920
|| !std::is_same<return_of_t<signature>, void>::value,
921
"RETURN does not make sense for void-function");
0 commit comments