|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r51449 - trunk/boost/tuple
From: steven_at_[hidden]
Date: 2009-02-25 21:35:45
Author: steven_watanabe
Date: 2009-02-25 21:35:44 EST (Wed, 25 Feb 2009)
New Revision: 51449
URL: http://svn.boost.org/trac/boost/changeset/51449
Log:
Supress gcc warning. Fixes #2388
Text files modified:
trunk/boost/tuple/tuple_comparison.hpp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
Modified: trunk/boost/tuple/tuple_comparison.hpp
==============================================================================
--- trunk/boost/tuple/tuple_comparison.hpp (original)
+++ trunk/boost/tuple/tuple_comparison.hpp 2009-02-25 21:35:44 EST (Wed, 25 Feb 2009)
@@ -69,8 +69,8 @@
template<class T1, class T2>
inline bool lt(const T1& lhs, const T2& rhs) {
return lhs.get_head() < rhs.get_head() ||
- !(rhs.get_head() < lhs.get_head()) &&
- lt(lhs.get_tail(), rhs.get_tail());
+ ( !(rhs.get_head() < lhs.get_head()) &&
+ lt(lhs.get_tail(), rhs.get_tail()));
}
template<>
inline bool lt<null_type,null_type>(const null_type&, const null_type&) { return false; }
@@ -78,8 +78,8 @@
template<class T1, class T2>
inline bool gt(const T1& lhs, const T2& rhs) {
return lhs.get_head() > rhs.get_head() ||
- !(rhs.get_head() > lhs.get_head()) &&
- gt(lhs.get_tail(), rhs.get_tail());
+ ( !(rhs.get_head() > lhs.get_head()) &&
+ gt(lhs.get_tail(), rhs.get_tail()));
}
template<>
inline bool gt<null_type,null_type>(const null_type&, const null_type&) { return false; }
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk