
Greetings,
We're using gcc 3.2.3 stlport 4.61 and boost 1_33_0.
When compiling some code which uses scoped_ptr, it was necessary to remove
the explicit call to std::auto_ptr and change it to use just plain auto_ptr.
I've attached the diffs below. Is there a boost configuration or other change
I would need to make to allow this combination to compile without the
below changes.
So std::auto_ptr<> would be resolvable?
Thanks,
Bill
These are the files I had to modify:
M boost/intrusive_ptr.hpp
diff -r1.2 intrusive_ptr.hpp
210c210
< return std::less
return less
()(a.get(), b.get());
257c257,258
< template
using _STL::basic_ostream; template
basic_ostream & operator<< (basic_ostream & os, intrusive_ptr<Y> const & p)
M boost/scoped_ptr.hpp diff -r1.2 scoped_ptr.hpp 63c63 < explicit scoped_ptr(std::auto_ptr<T> p): ptr(p.release()) // never throws ---
explicit scoped_ptr(_STL::auto_ptr<T> p): ptr(p.release()) // never throws
M boost/shared_array.hpp diff -r1.2 shared_array.hpp 160a161
using _STL::less; 163c164 < return std::less
()(a.get(), b.get());
return less
()(a.get(), b.get());
M boost/shared_ptr.hpp diff -r1.2 shared_ptr.hpp 197c197 < explicit shared_ptr(std::auto_ptr<Y> & r): px(r.get()), pn() ---
explicit shared_ptr(_STL::auto_ptr<Y> & r): px(r.get()), pn()
221c221 < shared_ptr & operator=(std::auto_ptr<Y> & r) ---
shared_ptr & operator=(_STL::auto_ptr<Y> & r)
437c437,438
< template
using _STL::basic_ostream; template
basic_ostream & operator<< (basic_ostream & os, shared_ptr<Y> const & p)
M boost/detail/shared_count.hpp diff -r1.2 shared_count.hpp 138c138 < explicit shared_count( std::auto_ptr<Y> & r ): pi_( new sp_counted_impl_p<Y>( r.get() ) ) ---
explicit shared_count( _STL::auto_ptr<Y> & r ): pi_( new sp_counted_impl_p<Y>( r.get() ) )
213c213
< return std::less
return _STL::less
()( a.pi_, b.pi_ );
307c307
< return std::less
return _STL::less
()(a.pi_, b.pi_);