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 f83bb4f commit 3fcf385Copy full SHA for 3fcf385
trompeloeil.hpp
@@ -922,10 +922,9 @@ namespace trompeloeil
922
static_assert(std::is_constructible<return_of_t<signature>, ret>::value
923
|| std::is_same<return_of_t<signature>, void>::value,
924
"RETURN value is not convertible to the return type of the function");
925
- static_assert(!std::is_same<return_type, ret>::value
926
- || std::is_same<return_type, void>::value,
+ static_assert(std::is_same<return_type, void>::value,
927
"Multiple RETURN does not make sense");
928
- static_assert(!throws,
+ static_assert(!throws || upper_call_limit == 0,
929
"THROW and RETURN does not make sense");
930
static_assert(upper_call_limit > 0ULL,
931
"RETURN for forbidden call does not make sense");
0 commit comments