Skip to content

Commit

Permalink
Remove anonymous namespace for std::vector output operator.
Browse files Browse the repository at this point in the history
This addresses compilation issues with gcc 4.8 and gtest 1.7.0 not
finding this function.

Change-Id: If5703cd7f56a2cd3f64247c747f22948a0cbc93c
  • Loading branch information
blowekamp committed Jun 12, 2015
1 parent e8f97f8 commit bfd34f7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Testing/Unit/SimpleITKTestHarness.h
Expand Up @@ -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<double>& v)
{
if ( v.empty() )
Expand All @@ -38,7 +37,6 @@ inline std::ostream& operator<< (std::ostream& os, const std::vector<double>& v)
std::copy( v.begin(), v.end()-1, std::ostream_iterator<double>(os, ", ") );
return os << v.back() << " ]";
}
}

#include <string>
#include <vector>
Expand Down

0 comments on commit bfd34f7

Please sign in to comment.