mirror of
https://github.com/boostorg/hana.git
synced 2026-01-23 05:32:13 +00:00
21 lines
665 B
C++
21 lines
665 B
C++
/*
|
|
@copyright Louis Dionne 2015
|
|
Distributed under the Boost Software License, Version 1.0.
|
|
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
|
|
*/
|
|
|
|
#include <boost/hana/equal.hpp>
|
|
#include <boost/hana/integral_constant.hpp>
|
|
#include <boost/hana/optional.hpp>
|
|
#include <boost/hana/repeat.hpp>
|
|
#include <boost/hana/tuple.hpp>
|
|
namespace hana = boost::hana;
|
|
|
|
|
|
static_assert(hana::repeat<hana::tuple_tag>('x', hana::size_c<2>) == hana::make_tuple('x', 'x'), "");
|
|
|
|
// Of course, there can't be more than one element in an `optional`.
|
|
static_assert(hana::repeat<hana::optional_tag>('x', hana::size_c<2>) == hana::just('x'), "");
|
|
|
|
int main() { }
|