mirror of
https://github.com/boostorg/callable_traits.git
synced 2026-02-14 00:32:11 +00:00
Excluding MSVC from unsupported feature tests
This commit is contained in:
@@ -8,6 +8,11 @@ Distributed under the Boost Software License, Version 1.0.
|
||||
#include <type_traits>
|
||||
#include <callable_traits/callable_traits.hpp>
|
||||
|
||||
#ifdef CALLABLE_TRAITS_MSVC
|
||||
//feature is unsupported in MSVC
|
||||
int main(){ return 0; };
|
||||
#else
|
||||
|
||||
#ifndef CT_ASSERT
|
||||
#define CT_ASSERT(...) static_assert(__VA_ARGS__, #__VA_ARGS__)
|
||||
#endif //CT_ASSERT
|
||||
@@ -59,4 +64,6 @@ CT_ASSERT(!ct::can_invoke_constexpr(foo1_pmf{}, foo1{}, 0));
|
||||
CT_ASSERT(!ct::can_invoke_constexpr(foo3_pmf{}, foo3{}));
|
||||
CT_ASSERT( ct::can_invoke_constexpr(foo3_pmf{}, foo3{}, 0));
|
||||
|
||||
int main() { return 0; }
|
||||
int main() {}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user