https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97778

--- Comment #2 from Janez Zemva <janezz55 at gmail dot com> ---
t.cpp:57:22: error: no matching function for call to 'apply(<unresolved
overloaded function type>, const std::tuple<std::chrono::duration<long int,
std::ratio<1, 1> >, std::chrono::time_point<std::chrono::_V2::system_clock,
std::chrono::duration<long int, std::ratio<1, 1000000000> > >,
std::basic_string_view<char, std::char_traits<char> > >&)'
   57 |     return std::apply(hash_combine<T const&...>, t);
      |            ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/10.2.0/functional:54,
                 from t.cpp:3:
/usr/include/c++/10.2.0/tuple:1729:5: note: candidate: 'template<class _Fn,
class _Tuple> constexpr decltype(auto) std::apply(_Fn&&, _Tuple&&)'
 1729 |     apply(_Fn&& __f, _Tuple&& __t)
      |     ^~~~~
/usr/include/c++/10.2.0/tuple:1729:5: note:   template argument
deduction/substitution failed:
t.cpp:57:22: note:   couldn't deduce template parameter '_Fn'
   57 |     return std::apply(hash_combine<T const&...>, t);
      |            ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to