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
10int 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}
15

source code of boost/libs/hof/test/fail/always.cpp