Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-07-24 09:44:41


From: "Damien Fisher" <damien_at_[hidden]>
> 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

Looks OK to me. MSVC6_... is a "positive" macro; it's defined when the
compiler supports at least the MSVC6-compatible member template subset.

The "negative" macro is BOOST_NO_MEMBER_TEMPLATES, but it's defined for MSVC
6.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk