]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/hana/test/ring.cpp
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)
5 #include <boost/hana/assert.hpp>
6 #include <boost/hana/concept/ring.hpp>
7 #include <boost/hana/mult.hpp>
8 #include <boost/hana/one.hpp>
9 #include <boost/hana/tuple.hpp>
11 #include <laws/ring.hpp>
12 namespace hana
= boost::hana
;
16 hana::test::TestRing
<int>{hana::make_tuple(0,1,2,3,4,5)};
17 hana::test::TestRing
<long>{hana::make_tuple(0l,1l,2l,3l,4l,5l)};
20 static_assert(hana::one
<int>() == 1, "");
23 static_assert(hana::mult(6, 4) == 6 * 4, "");