mirror of
https://github.com/boostorg/utility.git
synced 2025-05-09 15:04:00 +00:00
Fixed a bug in the semantics of less_pointees() {again}
[SVN r21133]
This commit is contained in:
parent
ec36cd8c54
commit
3305cf1592
@ -125,7 +125,7 @@ If both have invalid pointees, returns true.</p>
|
||||
inline
|
||||
bool less_pointees ( OptionalPointee const& x, OptionalPointee const& y )
|
||||
{
|
||||
return (!x) != (!y) ? false : ( !x ? false : (*x) == (*y) ) ;
|
||||
return !y ? false : ( !x ? true : (*x) < (*y) ) ;
|
||||
}
|
||||
template<class OptionalPointee>
|
||||
struct less_pointees_t : std::binary_function<bool,OptionalPointee,OptionalPointee>
|
||||
|
@ -52,7 +52,7 @@ template<class OptionalPointee>
|
||||
inline
|
||||
bool less_pointees ( OptionalPointee const& x, OptionalPointee const& y )
|
||||
{
|
||||
return !y ? false : ( !x ? false : (*x) < (*y) ) ;
|
||||
return !y ? false : ( !x ? true : (*x) < (*y) ) ;
|
||||
}
|
||||
|
||||
template<class OptionalPointee>
|
||||
|
Loading…
x
Reference in New Issue
Block a user