hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrzej <borucki_andr...@wp.pl>
Subject Re: Template problem native client c++ with new folly
Date Thu, 21 Jun 2018 14:20:46 GMT
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 
Is possible points this type explicitly in this code?

View raw message