From a655de0390dbaa27896cd5ba24855c1203b68b8c Mon Sep 17 00:00:00 2001 From: bergmann Date: Mon, 29 Jul 2019 19:24:38 +0200 Subject: [PATCH] * Fixed compiler error in gcc --- test/cppmp/cppmp_getter_tests.cpp | 4 ++-- test/cppmp/cppmp_setter_tests.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/cppmp/cppmp_getter_tests.cpp b/test/cppmp/cppmp_getter_tests.cpp index 2da0a16..cfa9302 100644 --- a/test/cppmp/cppmp_getter_tests.cpp +++ b/test/cppmp/cppmp_getter_tests.cpp @@ -57,11 +57,11 @@ TEST(cppmp_getter_tests, static_func) TEST(cppmp_getter_tests, lambda) { - test_obj o { 1 }; + test_obj obj { 1 }; auto g = make_getter([](test_obj& o){ return o.value; }); - EXPECT_EQ(1, g(o)); + EXPECT_EQ(1, g(obj)); } diff --git a/test/cppmp/cppmp_setter_tests.cpp b/test/cppmp/cppmp_setter_tests.cpp index eed7cd8..b4e90e4 100644 --- a/test/cppmp/cppmp_setter_tests.cpp +++ b/test/cppmp/cppmp_setter_tests.cpp @@ -61,12 +61,12 @@ TEST(cppmp_setter_tests, static_func) TEST(cppmp_setter_tests, lambda) { - test_obj o { 1 }; + test_obj obj { 1 }; auto s = make_setter([](test_obj& o, int v){ o.value = v; }); - s(o, 1); + s(obj, 1); - EXPECT_EQ(1, o.value); + EXPECT_EQ(1, obj.value); }