construct.cpp 529 B

12345678910111213141516171819
  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)
  4. #include <boost/hana/basic_tuple.hpp>
  5. namespace hana = boost::hana;
  6. template <int i>
  7. struct x { };
  8. int main() {
  9. constexpr hana::basic_tuple<> empty{}; (void)empty;
  10. constexpr hana::basic_tuple<int, float> xs{1, 2.3f}; (void)xs;
  11. constexpr auto ys = hana::basic_tuple<int, float>{1, 2.3f};
  12. constexpr auto copy = ys; (void)copy;
  13. }