From bfd34f779245710685fa09974b6a522b7240ada3 Mon Sep 17 00:00:00 2001 From: Bradley Lowekamp Date: Fri, 12 Jun 2015 08:46:24 -0400 Subject: [PATCH] Remove anonymous namespace for std::vector output operator. This addresses compilation issues with gcc 4.8 and gtest 1.7.0 not finding this function. Change-Id: If5703cd7f56a2cd3f64247c747f22948a0cbc93c --- Testing/Unit/SimpleITKTestHarness.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/Testing/Unit/SimpleITKTestHarness.h b/Testing/Unit/SimpleITKTestHarness.h index cf9ed12fb3..ef8eb27543 100644 --- a/Testing/Unit/SimpleITKTestHarness.h +++ b/Testing/Unit/SimpleITKTestHarness.h @@ -26,7 +26,6 @@ // This is needed before the gtest include for lookup of the operator // to work with clang 5.1 -namespace { inline std::ostream& operator<< (std::ostream& os, const std::vector& v) { if ( v.empty() ) @@ -38,7 +37,6 @@ inline std::ostream& operator<< (std::ostream& os, const std::vector& v) std::copy( v.begin(), v.end()-1, std::ostream_iterator(os, ", ") ); return os << v.back() << " ]"; } -} #include #include