From 01a113cc7f455caa0b2c26e0154bf1da07a5f911 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Tue, 24 Feb 2015 13:56:31 +0100 Subject: [PATCH] fix build with clang/clang++ Fix for: ./include/types.h:121:9: error: call to function 'operator<<' that is neither visible in the template definition nor found by argument-dependent lookup Signed-off-by: Danny Al-Gaaf --- src/include/types.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/include/types.h b/src/include/types.h index 7c10b1e38e3..a36eac5b578 100644 --- a/src/include/types.h +++ b/src/include/types.h @@ -112,6 +112,12 @@ inline ostream& operator<<(ostream& out, const deque& v) { return out; } +template +inline ostream& operator<<(ostream&out, const boost::tuple &t) { + out << boost::get<0>(t) <<"," << boost::get<1>(t) << "," << boost::get<2>(t); + return out; +} + template inline ostream& operator<<(ostream& out, const list& ilist) { for (typename list::const_iterator it = ilist.begin(); @@ -123,12 +129,6 @@ inline ostream& operator<<(ostream& out, const list& ilist) { return out; } -template -inline ostream& operator<<(ostream&out, const boost::tuple &t) { - out << boost::get<0>(t) <<"," << boost::get<1>(t) << "," << boost::get<2>(t); - return out; -} - template inline ostream& operator<<(ostream& out, const set& iset) { for (typename set::const_iterator it = iset.begin(); -- 2.47.3