1// Copyright Jason Rice 2016
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// modified from https://github.com/boostorg/hana/issues/304
5
6#include <boost/hana/ext/std/array.hpp>
7#include <boost/hana/tuple.hpp>
8
9namespace hana = boost::hana;
10
11struct Foo
12{
13 Foo() = default;
14 Foo(Foo const&) = delete;
15 Foo(Foo &&) = default;
16};
17
18using bar = decltype(hana::to_tuple(std::array<Foo, 2>()));
19
20int main()
21{ }
22

source code of boost/libs/hana/test/ext/std/array/issue_304.cpp