Boost logo

Boost Users :

From: William Deegan (bdbaddog_at_[hidden])
Date: 2006-06-22 16:50:45


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<T *>()(a.get(), b.get());

---
>     return less<T *>()(a.get(), b.get());
257c257,258
< template<class E, class T, class Y> std::basic_ostream<E, T> &
operator<< (std::basic_ostream<E, T> & os, intrusive_ptr<Y> const & p)
---
>   using _STL::basic_ostream;
> template<class E, class T, class Y> basic_ostream<E, T> & operator<< (basic_ostream<E, T> & 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<T*>()(a.get(), b.get());
---
>     return less<T*>()(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<class E, class T, class Y> std::basic_ostream<E, T> &
operator<< (std::basic_ostream<E, T> & os, shared_ptr<Y> const & p)
---
>   using _STL::basic_ostream;
> template<class E, class T, class Y> basic_ostream<E, T> & operator<< (basic_ostream<E, T> & 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<sp_counted_base *>()( a.pi_, b.pi_ );
---
>         return _STL::less<sp_counted_base *>()( a.pi_, b.pi_ );
307c307
<         return std::less<sp_counted_base *>()(a.pi_, b.pi_);
---
>         return _STL::less<sp_counted_base *>()(a.pi_, b.pi_);

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net