Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-02-09 07:55:36

The standard library that comes with g++ 2.95.3, mingw32 (and possibly with
other g++ versions) has the std::rel_ops template operators in the global

This breaks many user-defined operator!= overloads; in particular,
shared_ptr and weak_ptr are affected.

The g++ STL, when in "std:: mode", defines these operators in namespace std;
however, even in this case, they still have the potential to break user code
(for instance when using shared_ptr<std::vector>, std:: is reachable via
argument-dependent lookup.)

Perhaps we need a config macro to detect this case.

Peter Dimov
Multi Media Ltd.

Boost list run by bdawes at, gregod at, cpdaniel at, john at