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