1 //////////////////////////////////////////////////////////////////////////////
3 // (C) Copyright Howard Hinnant 2009
4 // (C) Copyright Ion Gaztanaga 2014-2014.
6 // Distributed under the Boost Software License, Version 1.0.
7 // (See accompanying file LICENSE_1_0.txt or copy at
8 // http://www.boost.org/LICENSE_1_0.txt)
10 // See http://www.boost.org/libs/move for documentation.
12 //////////////////////////////////////////////////////////////////////////////
13 #ifndef BOOST_MOVE_UNIQUE_PTR_TEST_UTILS_END_HPP
14 #define BOOST_MOVE_UNIQUE_PTR_TEST_UTILS_END_HPP
16 #ifndef BOOST_MOVE_UNIQUE_PTR_TEST_UTILS_BEG_HPP
17 #error "unique_ptr_test_utils_beg.hpp MUST be included before this header"
20 //Define the incomplete I type and out of line functions
26 I(const A&) {++count;}
32 I* get() {return new I;}
33 I* get_array(int i) {return new I[i];}
37 BOOST_TEST(I::count == i);
40 template <class T, class D>
44 { A::count = 0; B::count = 0; I::count = 0; }
46 #endif //BOOST_MOVE_UNIQUE_PTR_TEST_UTILS_END_HPP