Replace deprecated std::result_of, make nod library compatible with C++20

This commit is contained in:
Yuriy Skalko 2020-12-30 01:35:25 +02:00
parent f7772849b9
commit a2c126f867

View File

@ -269,7 +269,11 @@ namespace nod {
{
public:
/// Result type when calling the accumulating function operator.
#if __cplusplus >= 201703L
using result_type = typename std::invoke_result<F, T, typename S::slot_type::result_type>::type;
#else
using result_type = typename std::result_of<F(T, typename S::slot_type::result_type)>::type;
#endif
/// Construct a signal_accumulator as a proxy to a given signal
//