Boost logo

Boost Users :

From: Ilya Chvetsov(work) (chvetsov_at_[hidden])
Date: 2003-07-22 09:14:13


                Hi!
It seems to me, that the following string should be inserted to intrusive_ptr.hpp
<string>
#include <boost/config.hpp>
</string>
Following code can not be compiled without this string under
MSVC6SP5(with STLPort)
<code>
# if defined(BOOST_MSVC) && BOOST_WORKAROUND(BOOST_MSVC, <= 1200 && __SGI_STL_PORT)
// MSVC6 has problems finding std::basic_ostream through the using declaration in namespace _STL
using std::basic_ostream;
template<class E, class T, class Y> basic_ostream<E, T> & operator<< (basic_ostream<E, T> & os, intrusive_ptr<Y> const & p)
# else
template<class E, class T, class Y> std::basic_ostream<E, T> & operator<< (std::basic_ostream<E, T> & os, intrusive_ptr<Y> const & p)
# endif
{
    os << p.get();
    return os;
}
</code>
-Ilya


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