From 286d34cdbb5175b5ec33d0b5cc20d9521a62d4b4 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 3 Jul 2013 12:52:01 -0700 Subject: [PATCH] Fix the build on clang --- solvers/gecode/gecode.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/solvers/gecode/gecode.cc b/solvers/gecode/gecode.cc index 05e0e4a3c..9a2faa5c2 100644 --- a/solvers/gecode/gecode.cc +++ b/solvers/gecode/gecode.cc @@ -91,8 +91,10 @@ inline bool operator==( const Gecode::IntValBranch &lhs, const Gecode::IntValBranch &rhs) { return lhs.select() == rhs.select(); } +} -std::ostream &operator<<(std::ostream &os, const Gecode::IntValBranch &b) { +namespace Gecode { +std::ostream &operator<<(std::ostream &os, const IntValBranch &b) { return os << b.select(); } }