]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/hana/test/issues/github_260.cpp
2001361663262fd8214899b91985c681d68af83f
1 // Copyright Louis Dionne 2013-2016
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/functional/curry.hpp>
6 #include <boost/hana/functional/partial.hpp>
7 #include <boost/hana/functional/reverse_partial.hpp>
8 #include <boost/hana/tuple.hpp>
11 #include <type_traits>
12 namespace hana
= boost::hana
;
15 struct DefaultConstructible
{
16 DefaultConstructible() = default;
20 auto curry_tuple
= hana::make_tuple(
21 std::make_tuple(hana::curry
<2>(DefaultConstructible
{})(DefaultConstructible
{}))
24 auto partial_tuple
= hana::make_tuple(
25 std::make_tuple(hana::partial(DefaultConstructible
{}, DefaultConstructible
{}))
28 auto reverse_partial_tuple
= hana::make_tuple(
29 std::make_tuple(hana::reverse_partial(DefaultConstructible
{}, DefaultConstructible
{}))
32 static_assert(std::is_default_constructible
<decltype(curry_tuple
)>::value
, "");
33 static_assert(std::is_default_constructible
<decltype(partial_tuple
)>::value
, "");
34 static_assert(std::is_default_constructible
<decltype(reverse_partial_tuple
)>::value
, "");