From d8f1ee175c81faa0431eaf7b56a4e8aa22bf6485 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 16 Dec 2012 10:38:09 -0800 Subject: [PATCH] Make test compile on older compilers. --- format_test.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/format_test.cc b/format_test.cc index 4b86bd3d..68ed40a5 100644 --- a/format_test.cc +++ b/format_test.cc @@ -718,10 +718,10 @@ TEST(ActiveFormatterTest, ActionNotCalledOnError) { EXPECT_EQ(0, num_calls); } -// The test doesn't compile on MSVC because the latter follows C++03 and -// requires an accessible copy ctor when binding a temporary to a const +// The test doesn't compile on older compilers which follow C++03 and +// require an accessible copy ctor when binding a temporary to a const // reference. -#ifndef _MSC_VER +#if __GNUC__ >= 4 && __GNUC_MINOR__ >= 7 TEST(ActiveFormatterTest, ArgLifetime) { // The following code is for testing purposes only. It is a definite abuse // of the API and shouldn't be used in real applications.