/usr/local/include/boost-1_38/boost/tuple/tuple_comparison.hpp:73: 警告: 建议在 || 的操作数中出现的 && 前后加上括号查tuple_comparison.hpp的73行,1.34和1.38是一样子的,都是:
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()); <-第73行
}
template<class T1, class T2, class S1, class S2>其实整个tuple_comparison.hpp都是一个样子的。
inline bool operator<(const cons<T1, T2>& lhs, const cons<S1, S2>& rhs)
{
// check that tuple lengths are equal
BOOST_STATIC_ASSERT(length<T2>::value == length<S2>::value);
return detail::lt(lhs, rhs);
}