diff --git a/include/tins/internals.h b/include/tins/internals.h index 6eab10d..a09ed06 100644 --- a/include/tins/internals.h +++ b/include/tins/internals.h @@ -205,7 +205,7 @@ struct is_unsigned_integral { 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 diff --git a/include/tins/sniffer.h b/include/tins/sniffer.h index d53dcde..a071840 100644 --- a/include/tins/sniffer.h +++ b/include/tins/sniffer.h @@ -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