| 1 | // Copyright Louis Dionne 2013-2022 |
|---|---|
| 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) |
| 4 | |
| 5 | #include <boost/hana/tuple.hpp> |
| 6 | |
| 7 | #include <memory> |
| 8 | namespace hana = boost::hana; |
| 9 | |
| 10 | |
| 11 | // Tuples of smart pointers; based on LLVM bug #18350 |
| 12 | int main() { |
| 13 | { |
| 14 | hana::tuple<std::unique_ptr<char>> up; |
| 15 | hana::tuple<std::shared_ptr<char>> sp; |
| 16 | hana::tuple<std::weak_ptr <char>> wp; |
| 17 | } |
| 18 | { |
| 19 | hana::tuple<std::unique_ptr<char[]>> up; |
| 20 | hana::tuple<std::shared_ptr<char[]>> sp; |
| 21 | hana::tuple<std::weak_ptr <char[]>> wp; |
| 22 | } |
| 23 | } |
| 24 |
