// Copyright Louis Dionne 2013-2017 // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) #include #include namespace hana = boost::hana; template void check() { static_assert(std::is_same< typename hana::detail::decay::type, Decayed >::value, ""); } int main() { // void is untouched check(); // normal types lose cv-qualifiers check(); check(); check(); // [cv-qualified] references are stripped check(); check(); check(); check(); // pointers are untouched check(); check(); check(); check(); // arrays decay to pointers check(); check(); check(); check(); check(); // functions decay to function pointers check(); check(); check(); check(); check(); check(); }