From: Damien Fisher (damien_at_[hidden])
Date: 2002-07-24 09:37:12


In my local copy of boost (1.28), I just noticed that in
intrusive_ptr.hpp there are 2 #ifdefs which I believe should be
#ifndefs:

#ifdef BOOST_MSVC6_MEMBER_TEMPLATES

    template<class U> intrusive_ptr(intrusive_ptr<U> const & rhs): p_(rhs.get())
    {
        if(p_ != 0) intrusive_ptr_add_ref(p_);
    }

#endif

    intrusive_ptr(intrusive_ptr const & rhs): p_(rhs.p_)
    {
        if(p_ != 0) intrusive_ptr_add_ref(p_);
    }

#ifdef BOOST_MSVC6_MEMBER_TEMPLATES

    template<class U> intrusive_ptr & operator=(intrusive_ptr<U> const & rhs)
    {
        this_type(rhs).swap(*this);
        return *this;
    }

#endif

I'd imagine this has already been fixed in CVS or whatnot, but just in
case...