/*!<- 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) ->*/ //[ experimental_calling_convention_cdecl #define CALLABLE_TRAITS_ENABLE_CDECL #include #include #include namespace ct = callable_traits; struct foo {}; int main() { //depending on your platform, pmf may already have an implicit __cdecl using pmf = void(foo::*)(); using expect = void(__cdecl foo::*)(); using test = ct::add_calling_convention; static_assert(std::is_same::value, ""); static_assert(ct::has_calling_convention(), ""); static_assert(ct::has_calling_convention(), ""); } //]