github_202.cpp 676 B

1234567891011121314151617181920212223242526
  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/pair.hpp>
  6. #include <boost/hana/tuple.hpp>
  7. #include <vector>
  8. namespace hana = boost::hana;
  9. using Vector = std::vector<int>;
  10. static_assert(
  11. sizeof(hana::tuple<
  12. hana::pair<hana::int_<0>, Vector>,
  13. hana::pair<hana::int_<1>, Vector>,
  14. hana::pair<hana::int_<2>, Vector>,
  15. hana::pair<hana::int_<3>, Vector>
  16. >)
  17. ==
  18. sizeof(hana::tuple<Vector, Vector, Vector, Vector>)
  19. , "");
  20. int main() { }