Worked around an MSVC 6 bug (Markus Schoepflin)

[SVN r13430]
This commit is contained in:
Peter Dimov
2002-04-10 14:12:12 +00:00
parent 9eb1ba7e9f
commit 513752eee5
2 changed files with 9 additions and 1 deletions

View File

@@ -142,6 +142,8 @@ public:
#endif #endif
#if !defined(BOOST_MSVC) || (BOOST_MSVC > 1200)
template<typename Y> template<typename Y>
shared_ptr & operator=(shared_ptr<Y> const & r) // never throws shared_ptr & operator=(shared_ptr<Y> const & r) // never throws
{ {
@@ -150,6 +152,8 @@ public:
return *this; return *this;
} }
#endif
#ifndef BOOST_NO_AUTO_PTR #ifndef BOOST_NO_AUTO_PTR
template<typename Y> template<typename Y>

View File

@@ -51,6 +51,8 @@ public:
{ {
} }
#if !defined(BOOST_MSVC) || (BOOST_MSVC > 1200)
template<typename Y> template<typename Y>
weak_ptr & operator=(weak_ptr<Y> const & r) // never throws weak_ptr & operator=(weak_ptr<Y> const & r) // never throws
{ {
@@ -67,6 +69,8 @@ public:
return *this; return *this;
} }
#endif
void reset() void reset()
{ {
this_type().swap(*this); this_type().swap(*this);