From: Danny Al-Gaaf Date: Tue, 24 Feb 2015 12:56:31 +0000 (+0100) Subject: fix build with clang/clang++ X-Git-Tag: suse_latest~18^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=01a113cc7f455caa0b2c26e0154bf1da07a5f911;p=ceph.git 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 --- diff --git a/src/include/types.h b/src/include/types.h index 7c10b1e38e39..a36eac5b5780 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();