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