This commit is contained in:
Gennadiy Civil 2018-04-16 10:34:07 -04:00
parent 26c10dc7e6
commit 1c6e68cf6c

View File

@ -1539,10 +1539,9 @@ TEST(FunctorActionTest, TypeConversion) {
TEST(FunctorActionTest, UnusedArguments) {
// Verify that users can ignore uninteresting arguments.
Action<int(int, double y, const int&)> a =
Action<int(int, double y, double z)> a =
[](int i, Unused, Unused) { return 2 * i; };
int nine = 9;
tuple<int, double, const int&> dummy = make_tuple(3, 7.3, nine);
tuple<int, double, const int&> dummy = make_tuple(3, 7.3, 9.44);
EXPECT_EQ(6, a.Perform(dummy));
}