X-Git-Url: http://xvm.mit.edu/gitweb/invirt/third/libt4.git/blobdiff_plain/26ade07ab0e62b98b452fbbd18edba0450035e35..03b35a9a1bd1f583e32b27d260b223a0989d6c75:/rpc/marshall_wrap.h diff --git a/rpc/marshall_wrap.h b/rpc/marshall_wrap.h index b895696..6754acc 100644 --- a/rpc/marshall_wrap.h +++ b/rpc/marshall_wrap.h @@ -43,17 +43,17 @@ struct VerifyOnFailure { // One for function pointers... template -typename enable_if::value, RV>::type inline +typename enable_if::value, RV>::type inline invoke(RV, F f, void *, R & r, args_type & t, tuple_indices) { - return f(r, get(t)...); + return f(r, std::get(t)...); } // And one for pointers to member functions... template -typename enable_if::value, RV>::type inline +typename enable_if::value, RV>::type inline invoke(RV, F f, C *c, R & r, args_type & t, tuple_indices) { - return (c->*f)(r, get(t)...); + return (c->*f)(r, std::get(t)...); } // The class marshalled_func_imp uses partial template specialization to @@ -76,13 +76,13 @@ struct marshalled_func_imp { // This type definition represents storage for f's unmarshalled // arguments. decay is (most notably) stripping off const // qualifiers. - using ArgsStorage = tuple::type...>; + using ArgsStorage = tuple::type...>; // Allocate a handler (i.e. function) to hold the lambda // which will unmarshall RPCs and call f. return new handler([=](unmarshall && u, marshall & m) -> RV { // Unmarshall each argument with the correct type and store the // result in a tuple. - ArgsStorage t{u._grab::type>()...}; + ArgsStorage t{u._grab::type>()...}; // Verify successful unmarshalling of the entire input stream. if (!u.okdone()) return (RV)ErrorHandler::unmarshall_args_failure();