9
3

issue_304.cpp 510 B

123456789101112131415161718192021
  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. #include <boost/hana/ext/std/array.hpp>
  6. #include <boost/hana/tuple.hpp>
  7. namespace hana = boost::hana;
  8. struct Foo
  9. {
  10. Foo() = default;
  11. Foo(Foo const&) = delete;
  12. Foo(Foo &&) = default;
  13. };
  14. using bar = decltype(hana::to_tuple(std::array<Foo, 2>()));
  15. int main()
  16. { }