]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/hof/test/fail/always.cpp
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / boost / libs / hof / test / fail / always.cpp
1 /*=============================================================================
2 Copyright (c) 2017 Paul Fultz II
3 always.cpp
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/always.hpp>
8 #include <memory>
9
10 int main() {
11 auto f = boost::hof::always(std::unique_ptr<int>{new int(1)});
12 auto i = f(1, 2, 3);
13 (void)i;
14 }