W dniu 20.06.2018 o 22:42, Andrzej pisze:
  GetRegionLocations(actions, locate_timeout_ns)
       .then([=](std::vector<Try<std::shared_ptr<RegionLocation>>> &loc) {
         std::lock_guard<std::recursive_mutex> lck(multi_mutex_);
         ActionsByServer actions_by_server;
         std::vector<std::shared_ptr<Action>> locate_failed;

Method GetRegionLocations retuns AsyncBatchRpcRetryingCaller<REQ, RESP>
we have two arguments to instantiate template: REQ and RESP
RESP is in Call()
folly::Future<std::vector<folly::Try<RESP>>> Call();
we have std::vector<Try<std::shared_ptr<RegionLocation>>> as argument

but parameter REQ is not known,
must be std::vector<std::shared_ptr<Action>> ?

GetRegionLocations is not template, have this type

How to say compiler, that type REQ must be std::vector<std::shared_ptr<Action>>
?
Is possible points this type explicitly in this code?

Reply via email to