]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/core/test/alloc_construct_throws_test.cpp
2 Copyright 2019 Glen Joseph Fernandes
5 Distributed under the Boost Software License, Version 1.0.
6 (http://www.boost.org/LICENSE_1_0.txt)
8 #include <boost/core/alloc_construct.hpp>
9 #include <boost/core/default_allocator.hpp>
10 #include <boost/core/lightweight_test.hpp>
29 type
& operator=(const type
&);
36 boost::default_allocator
<type
> a
;
37 type
* p
= a
.allocate(5);
39 boost::alloc_construct_n(a
, p
, 5);
40 BOOST_ERROR("construct_n did not throw");
42 BOOST_TEST_EQ(type::count
, 0);
45 return boost::report_errors();