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/core/is_a.hpp> 6 namespace hana = boost::hana; 7 8 main()9int main() { 10 // This used to trigger a compilation error on Clang 3.5. 11 { 12 auto f = [](auto i) { 13 constexpr auto result = hana::is_an<int>(i); 14 (void)result; 15 }; 16 f(1); 17 } 18 } 19