Worked around an MSVC 6 bug (Markus Schoepflin)

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

No files matched your search

+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);