/*!<- 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_changing_calling_conventions #define CALLABLE_TRAITS_ENABLE_STDCALL #define CALLABLE_TRAITS_ENABLE_FASTCALL #include #include #include #include namespace ct = callable_traits; int main() { using f = void(__fastcall *)(int); static_assert(ct::has_calling_convention(), ""); static_assert(!ct::has_calling_convention(), ""); using expect = void(__stdcall *)(int); static_assert(ct::has_calling_convention(), ""); static_assert(!ct::has_calling_convention(), ""); using g = ct::remove_calling_convention; using test = ct::add_calling_convention; static_assert(ct::has_calling_convention(), ""); static_assert(std::is_same::value, ""); } //]