| 1 | // Copyright Louis Dionne 2013-2022 |
| 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> |
| 10 | namespace hana = boost::hana; |
| 11 | |
| 12 | |
| 13 | template <typename T> |
| 14 | decltype(auto) call_always(T&& x) { |
| 15 | return hana::always(std::forward<T>(x))(); |
| 16 | } |
| 17 | |
| 18 | int main() { |
| 19 | auto copy = call_always(Tracked{1}); |
| 20 | (void)copy; |
| 21 | } |
| 22 | |