]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/hof/test/fail/unpack_uncallable.cpp
1 /*=============================================================================
2 Copyright (c) 2017 Paul Fultz II
4 Distributed under the Boost Software License, Version 1.0. (See accompanying
5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 ==============================================================================*/
7 #include <boost/hof/unpack.hpp>
12 namespace boost
{ namespace hof
{
15 struct unpack_sequence
<foo
>
17 template<class F
, class S
>
18 constexpr static auto apply(F
&&, S
&& s
) BOOST_HOF_RETURNS(s
.bar
);
23 boost::hof::unpack(boost::hof::always(1))(foo
{});