diff --git a/googletest/include/gtest/gtest-param-test.h b/googletest/include/gtest/gtest-param-test.h index 9bf66b49..cfd7d375 100644 --- a/googletest/include/gtest/gtest-param-test.h +++ b/googletest/include/gtest/gtest-param-test.h @@ -448,9 +448,8 @@ internal::ParamGenerator CombineTo( template internal::ParamGenerator> Combine( internal::ParamGenerator&&... generators) { - return internal::ParamGenerator>( - new internal::CartesianProductGenerator, T...>( - std::forward(generators)...)); + return CombineTo, T...>( + std::forward(generators)...); } // ConvertGenerator() wraps a parameter generator in order to cast each produced