forked from boostorg/smart_ptr
Use shared_ptr and make_shared in sp_override_test
This commit is contained in:
@ -10,4 +10,9 @@
|
|||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
|
boost::shared_ptr<int> p1( new int );
|
||||||
|
boost::shared_ptr<int[]> p2( new int[1] );
|
||||||
|
|
||||||
|
boost::make_shared<int>();
|
||||||
|
boost::make_shared<int[]>( 1 );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user