mirror of
https://github.com/mfontanini/libtins
synced 2026-01-23 02:35:57 +01:00
Don't define Sniffer callback traits when using VS.
This commit is contained in:
@@ -205,7 +205,7 @@ struct is_unsigned_integral<uint64_t> {
|
||||
static const bool value = true;
|
||||
};
|
||||
|
||||
#if TINS_IS_CXX11
|
||||
#if TINS_IS_CXX11 && !defined(_MSC_VER)
|
||||
|
||||
// Template metaprogramming trait to determine if a functor can accept another parameter as an argument
|
||||
template <class T, class P, class=void>
|
||||
|
||||
@@ -582,7 +582,7 @@ namespace Tins {
|
||||
for(iterator it = begin(); it != end(); ++it) {
|
||||
try {
|
||||
// If the functor returns false, we're done
|
||||
#if TINS_IS_CXX11
|
||||
#if TINS_IS_CXX11 && !defined(_MSC_VER)
|
||||
if (!Tins::Internals::invoke_loop_cb(function, *it))
|
||||
return;
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user