]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/hana/test/tuple/smart_ptr.cpp
1 // Copyright Louis Dionne 2013-2017
2 // Distributed under the Boost Software License, Version 1.0.
3 // (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
5 #include <boost/hana/tuple.hpp>
8 namespace hana
= boost::hana
;
11 // Tuples of smart pointers; based on LLVM bug #18350
12 // auto_ptr doesn't have a copy constructor that takes a const &, but tuple does.
15 hana::tuple
<std::unique_ptr
<char>> up
;
16 hana::tuple
<std::shared_ptr
<char>> sp
;
17 hana::tuple
<std::weak_ptr
<char>> wp
;
20 hana::tuple
<std::unique_ptr
<char[]>> up
;
21 hana::tuple
<std::shared_ptr
<char[]>> sp
;
22 hana::tuple
<std::weak_ptr
<char[]>> wp
;
25 hana::tuple
<std::unique_ptr
<char[5]>> up
;
26 hana::tuple
<std::shared_ptr
<char[5]>> sp
;
27 hana::tuple
<std::weak_ptr
<char[5]>> wp
;