Fix enable_shared_from_this-related tickets in trunk. Refs #2126. Refs #2584.

[SVN r51581]
This commit is contained in:
Peter Dimov
2009-03-03 19:25:26 +00:00
parent 68c939ec5a
commit 9c55fbc6c2
14 changed files with 824 additions and 407 deletions

View File

@@ -10,6 +10,7 @@
#include <boost/make_shared.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/weak_ptr.hpp>
#include <cstddef>
class X
{
@@ -18,6 +19,14 @@ private:
X( X const & );
X & operator=( X const & );
void * operator new( std::size_t );
void operator delete( void * p )
{
// lack of this definition causes link errors on MSVC
::operator delete( p );
}
public:
static int instances;