mirror of
https://github.com/boostorg/callable_traits.git
synced 2026-02-13 00:12:11 +00:00
Excluding MSVC from unsupported feature tests
This commit is contained in:
@@ -6,6 +6,12 @@ Distributed under the Boost Software License, Version 1.0.
|
||||
|
||||
->*/
|
||||
|
||||
#include <callable_traits/bind.hpp>
|
||||
#ifdef CALLABLE_TRAITS_MSVC
|
||||
//feature is unsupported in MSVC
|
||||
int main(){ return 0; };
|
||||
#else
|
||||
|
||||
//[ bind_1
|
||||
|
||||
/* In this example, the last _1 placeholder in the bind
|
||||
@@ -16,7 +22,7 @@ because ScaryMonster is the narrowest of all _1 parameters. */
|
||||
#include <type_traits>
|
||||
#include <functional>
|
||||
#include <tuple>
|
||||
#include <callable_traits/callable_traits.hpp>
|
||||
#include <callable_traits/bind.hpp>
|
||||
|
||||
struct Vampire {};
|
||||
struct Robot {};
|
||||
@@ -78,3 +84,4 @@ int main() {
|
||||
return 0;
|
||||
}
|
||||
//]
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user