Excluding MSVC from unsupported feature tests

This commit is contained in:
badair
2016-04-15 17:16:39 -05:00
parent ea8a99c2ab
commit 29f3a74e46
17 changed files with 137 additions and 110 deletions

View File

@@ -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
@@ -164,4 +169,6 @@ namespace test7 {
CT_ASSERT(!ct::is_constexpr<G3>());
}
int main() { return 0; }
int main() {}
#endif