We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5558a42 + 2c911e9 commit 23e4190Copy full SHA for 23e4190
include/nod/nod.hpp
@@ -269,7 +269,11 @@ namespace nod {
269
{
270
public:
271
/// Result type when calling the accumulating function operator.
272
+ #if (__cplusplus > 201703L)
273
+ using result_type = typename std::invoke_result<F, T, typename S::slot_type::result_type>::type;
274
+ #else
275
using result_type = typename std::result_of<F(T, typename S::slot_type::result_type)>::type;
276
+ #endif
277
278
/// Construct a signal_accumulator as a proxy to a given signal
279
//
0 commit comments