/*!<- Copyright (c) 2016 Barrett Adair Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) ->*/ //[ result_of #include #include namespace ct = callable_traits; using expect = int; struct foo; template void test() { using result = ct::result_of; static_assert(std::is_same{}, ""); } int main() { test(); test(); test(); test(); test(); auto x = []() -> int { return 0; }; test(); } //]