mirror of
https://github.com/boostorg/callable_traits.git
synced 2026-02-11 11:42:15 +00:00
Excluding MSVC from unsupported feature tests
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
/*!<-
|
||||
Copyright (c) 2016 Barrett Adair
|
||||
|
||||
@@ -6,9 +5,15 @@ Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
|
||||
->*/
|
||||
|
||||
#include <callable_traits/can_invoke_constexpr.hpp>
|
||||
#ifdef CALLABLE_TRAITS_MSVC
|
||||
//feature is unsupported in MSVC
|
||||
int main(){ return 0; };
|
||||
#else
|
||||
|
||||
//[ can_invoke_constexpr_member_function_pointer
|
||||
#include <type_traits>
|
||||
#include <callable_traits/callable_traits.hpp>
|
||||
#include <callable_traits/can_invoke_constexpr.hpp>
|
||||
|
||||
// NOTE: Due to non-compliance in MSVC, can_invoke_constexpr
|
||||
// always returns std::false_type on that compiler, which
|
||||
@@ -34,3 +39,4 @@ static_assert(!ct::can_invoke_constexpr(pmf_constant{}, foo{}), "");
|
||||
|
||||
int main() {}
|
||||
//]
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user