Skip to content

Commit

Permalink
Merge pull request #2583 from ChristophStrehle:master
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 282817206
  • Loading branch information
rogeeff committed Nov 27, 2019
2 parents 34e92be + 6a9d6d5 commit b155875
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion googlemock/include/gmock/gmock-actions.h
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,8 @@ struct WithArgsAction {
// We use the conversion operator to detect the signature of the inner Action.
template <typename R, typename... Args>
operator Action<R(Args...)>() const { // NOLINT
Action<R(typename std::tuple_element<I, std::tuple<Args...>>::type...)>
using TupleType = std::tuple<Args...>;
Action<R(typename std::tuple_element<I, TupleType>::type...)>
converted(action);

return [converted](Args... args) -> R {
Expand Down

0 comments on commit b155875

Please sign in to comment.