|
Boost : |
From: Jeremy Siek (jsiek_at_[hidden])
Date: 2002-02-09 09:57:18
The boost/iterator_adaptors.hpp header currently has a local macro for
this named BOOST_RELOPS_AMBIGUITY_BUG. We could move this into config.
Also, whoever fixes shared_ptr and weak_ptr may want to look at how the
workaround was accomplished for iterator_adaptor.
On Sat, 9 Feb 2002, Peter Dimov wrote:
pdimov> The standard library that comes with g++ 2.95.3, mingw32
pdimov> (and possibly with other g++ versions) has the
pdimov> std::rel_ops template operators in the global namespace.
pdimov>
pdimov> This breaks many user-defined operator!= overloads; in
pdimov> particular, shared_ptr and weak_ptr are affected.
pdimov>
pdimov> The g++ STL, when in "std:: mode", defines these operators
pdimov> in namespace std; however, even in this case, they still
pdimov> have the potential to break user code (for instance when
pdimov> using shared_ptr<std::vector>, std:: is reachable via
pdimov> argument-dependent lookup.)
pdimov>
pdimov> Perhaps we need a config macro to detect this case.
pdimov>
pdimov> --
pdimov> Peter Dimov
pdimov> Multi Media Ltd.
pdimov>
pdimov>
pdimov> Info: http://www.boost.org Send unsubscribe requests to: <mailto:boost-unsubscribe_at_[hidden]>
pdimov>
pdimov> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
pdimov>
pdimov>
----------------------------------------------------------------------
Jeremy Siek http://php.indiana.edu/~jsiek/
Ph.D. Student, Indiana Univ. B'ton email: jsiek_at_[hidden]
C++ Booster (http://www.boost.org) office phone: (812) 855-3608
----------------------------------------------------------------------
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk