| Index: base/tuple.h
|
| diff --git a/base/tuple.h b/base/tuple.h
|
| index e73dd49c7c09d5bf9f0dd753b38e6a9eb60be072..d07d38c6031726f28308ed14648b6308e3805cb0 100644
|
| --- a/base/tuple.h
|
| +++ b/base/tuple.h
|
| @@ -196,7 +196,7 @@ inline Tuple<Ts&...> MakeRefTuple(Ts&... arg) {
|
| // Non-Static Dispatchers with no out params.
|
|
|
| template <typename ObjT, typename Method, typename... Ts, size_t... Ns>
|
| -inline void DispatchToMethodImpl(ObjT* obj,
|
| +inline void DispatchToMethodImpl(const ObjT& obj,
|
| Method method,
|
| const Tuple<Ts...>& arg,
|
| IndexSequence<Ns...>) {
|
| @@ -204,7 +204,7 @@ inline void DispatchToMethodImpl(ObjT* obj,
|
| }
|
|
|
| template <typename ObjT, typename Method, typename... Ts>
|
| -inline void DispatchToMethod(ObjT* obj,
|
| +inline void DispatchToMethod(const ObjT& obj,
|
| Method method,
|
| const Tuple<Ts...>& arg) {
|
| DispatchToMethodImpl(obj, method, arg, MakeIndexSequence<sizeof...(Ts)>());
|
| @@ -232,7 +232,7 @@ template <typename ObjT,
|
| typename... OutTs,
|
| size_t... InNs,
|
| size_t... OutNs>
|
| -inline void DispatchToMethodImpl(ObjT* obj,
|
| +inline void DispatchToMethodImpl(const ObjT& obj,
|
| Method method,
|
| const Tuple<InTs...>& in,
|
| Tuple<OutTs...>* out,
|
| @@ -243,7 +243,7 @@ inline void DispatchToMethodImpl(ObjT* obj,
|
| }
|
|
|
| template <typename ObjT, typename Method, typename... InTs, typename... OutTs>
|
| -inline void DispatchToMethod(ObjT* obj,
|
| +inline void DispatchToMethod(const ObjT& obj,
|
| Method method,
|
| const Tuple<InTs...>& in,
|
| Tuple<OutTs...>* out) {
|
|
|