mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-07-31 05:07:21 +02:00
Use shared_ptr and make_shared in sp_override_test
This commit is contained in:
@ -10,4 +10,9 @@
|
||||
|
||||
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