Merge branch 'develop' of https://github.com/boostorg/smart_ptr into cppbuilder

This commit is contained in:
Edward Diener committed 2020-05-06 11:32:12 -04:00
commit c6b3700ef1
4 files changed
+42 -1

No files matched your search

+5
View File
@@ -361,3 +361,8 @@ compile-fail shared_from_fail.cpp ;
compile-fail weak_from_fail.cpp ;
compile sp_override_test.cpp ;
compile sp_pedantic_test.cpp
: <warnings>pedantic
<toolset>msvc:<warnings-as-errors>on
<toolset>gcc:<warnings-as-errors>on
<toolset>clang:<warnings-as-errors>on ;
+14
View File
@@ -0,0 +1,14 @@
// Copyright 2020 Peter Dimov
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
#include <boost/smart_ptr.hpp>
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 );
}