diff options
Diffstat (limited to 'src/boost/libs/hana/test/ext/std/array/issue_304.cpp')
-rw-r--r-- | src/boost/libs/hana/test/ext/std/array/issue_304.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/boost/libs/hana/test/ext/std/array/issue_304.cpp b/src/boost/libs/hana/test/ext/std/array/issue_304.cpp new file mode 100644 index 000000000..321f18f27 --- /dev/null +++ b/src/boost/libs/hana/test/ext/std/array/issue_304.cpp @@ -0,0 +1,21 @@ +// Copyright Jason Rice 2016 +// Distributed under the Boost Software License, Version 1.0. +// (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) +// modified from https://github.com/boostorg/hana/issues/304 + +#include <boost/hana/ext/std/array.hpp> +#include <boost/hana/tuple.hpp> + +namespace hana = boost::hana; + +struct Foo +{ + Foo() = default; + Foo(Foo const&) = delete; + Foo(Foo &&) = default; +}; + +using bar = decltype(hana::to_tuple(std::array<Foo, 2>())); + +int main() +{ } |