cnstr.copy.cpp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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/integral_constant.hpp>
  5. #include <boost/hana/set.hpp>
  6. #include <boost/hana/type.hpp>
  7. namespace hana = boost::hana;
  8. int main() {
  9. {
  10. auto t0 = hana::make_set();
  11. auto t_implicit = t0;
  12. auto t_explicit(t0);
  13. (void)t_explicit;
  14. (void)t_implicit;
  15. }
  16. {
  17. auto t0 = hana::make_set(hana::int_c<2>);
  18. auto t_implicit = t0;
  19. auto t_explicit(t0);
  20. (void)t_implicit;
  21. (void)t_explicit;
  22. }
  23. {
  24. auto t0 = hana::make_set(hana::int_c<2>, hana::int_c<3>);
  25. auto t_implicit = t0;
  26. auto t_explicit(t0);
  27. (void)t_implicit;
  28. (void)t_explicit;
  29. }
  30. {
  31. auto t0 = hana::make_set(hana::int_c<2>, hana::int_c<3>, hana::type_c<int>);
  32. auto t_implicit = t0;
  33. auto t_explicit(t0);
  34. (void)t_implicit;
  35. (void)t_explicit;
  36. }
  37. {
  38. constexpr auto t0 = hana::make_set(hana::int_c<2>, hana::int_c<3>, hana::type_c<int>);
  39. constexpr auto t_implicit = t0;
  40. constexpr auto t_explicit(t0);
  41. (void)t_implicit;
  42. (void)t_explicit;
  43. }
  44. }