]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/hana/test/issues/github_15.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / hana / test / issues / github_15.cpp
CommitLineData
b32b8144 1// Copyright Louis Dionne 2013-2017
7c673cae
FG
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)
4
5#include <boost/hana/functional/always.hpp>
6
7#include <support/tracked.hpp>
8
9#include <utility>
10namespace hana = boost::hana;
11
12
13template <typename T>
14decltype(auto) call_always(T&& x) {
15 return hana::always(std::forward<T>(x))();
16}
17
18int main() {
19 auto copy = call_always(Tracked{1});
20 (void)copy;
21}