Minor cosmetic changes in make_shared for arrays

This commit is contained in:
Glen Fernandes
2014-01-28 03:40:54 -08:00
parent db78d9b2be
commit 87e5debdc2
8 changed files with 103 additions and 91 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
* Distributed under the Boost Software License,
* Version 1.0. (See accompanying file LICENSE_1_0.txt
* or copy at http://boost.org/LICENSE_1_0.txt)
*/
*/
#include <boost/detail/lightweight_test.hpp>
#include <boost/smart_ptr/allocate_shared_array.hpp>
#include <boost/smart_ptr/weak_ptr.hpp>
+2 -4
View File
@@ -84,8 +84,7 @@ int main() {
try {
boost::allocate_shared_noinit<type[6]>(std::allocator<type>());
BOOST_ERROR("allocate_shared_noinit did not throw");
}
catch (...) {
} catch (...) {
BOOST_TEST(type::instances == 0);
}
@@ -93,8 +92,7 @@ int main() {
try {
boost::allocate_shared_noinit<type[3][2]>(std::allocator<type>());
BOOST_ERROR("allocate_shared_noinit did not throw");
}
catch (...) {
} catch (...) {
BOOST_TEST(type::instances == 0);
}
+2 -4
View File
@@ -84,8 +84,7 @@ int main() {
try {
boost::make_shared_noinit<type[6]>();
BOOST_ERROR("make_shared_noinit did not throw");
}
catch (...) {
} catch (...) {
BOOST_TEST(type::instances == 0);
}
@@ -93,8 +92,7 @@ int main() {
try {
boost::make_shared_noinit<type[3][2]>();
BOOST_ERROR("make_shared_noinit did not throw");
}
catch (...) {
} catch (...) {
BOOST_TEST(type::instances == 0);
}