LK
Size: a a a
LK
LK
error: call to function 'GetAwaiter' that is neither visible in the template definition nor found by argument-dependent lookup
auto awaiter = GetAwaiter(std::forward<Awaitable>(a));
^
note: in instantiation of function template specialization ‘Await<Future<void>>' requested here
Await(time_keeper.After(d)).ExpectOk();
^
note: 'GetAwaiter' should be declared prior to the call site or in an associated namespace of one of its arguments
auto GetAwaiter(Future<T>&& f) -> detail::FutureAwaiter<T> {
LK
AV
FO
AV
LK
error: call to function 'GetAwaiter' that is neither visible in the template definition nor found by argument-dependent lookup
auto awaiter = GetAwaiter(std::forward<Awaitable>(a));
^
note: in instantiation of function template specialization ‘Await<Future<void>>' requested here
Await(time_keeper.After(d)).ExpectOk();
^
note: 'GetAwaiter' should be declared prior to the call site or in an associated namespace of one of its arguments
auto GetAwaiter(Future<T>&& f) -> detail::FutureAwaiter<T> {
Await(Future), а потом
GetAwaiter(Future)
LK
LK
GetAwaiter, а не конкретную реализацию
AV
FO
AV
AK
АК
LK
template <typename Awaitable, typename Awaiter>
struct Helper {
auto GetAwaiter(Awaitable&& a) -> Awaiter;
};
LK