mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-10-17 01:45:25 +02:00
Stricter tests; associated bug fixes. ;-)
[SVN r16369]
This commit is contained in:
@@ -99,7 +99,9 @@ private:
|
||||
|
||||
long X::instances = 0;
|
||||
|
||||
struct Y: public A, public X
|
||||
// virtual inheritance stresses the implementation
|
||||
|
||||
struct Y: public A, public virtual X
|
||||
{
|
||||
static long instances;
|
||||
|
||||
@@ -771,6 +773,11 @@ void weak_ptr_constructor()
|
||||
catch(boost::bad_weak_ptr)
|
||||
{
|
||||
}
|
||||
|
||||
{
|
||||
boost::weak_ptr<Y> wp2(wp);
|
||||
boost::weak_ptr<X> wp3(wp);
|
||||
}
|
||||
}
|
||||
|
||||
void auto_ptr_constructor()
|
||||
|
Reference in New Issue
Block a user