Merge [51581] to release. Fixes #2126. Fixes #2584.

[SVN r51632]
This commit is contained in:
Peter Dimov
2009-03-05 23:06:17 +00:00
parent 5a2771e585
commit 22f1b092c9
12 changed files with 824 additions and 92 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;