From 3be7521aa2e5c163604d8c79b97ef71e65e0e403 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 6 Jan 2024 14:34:59 +0200 Subject: [PATCH] Fix BOOST_MSVC checks --- include/boost/bind/bind.hpp | 4 ++-- include/boost/bind/detail/tuple_for_each.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/bind/bind.hpp b/include/boost/bind/bind.hpp index bda1263..11fcb2a 100644 --- a/include/boost/bind/bind.hpp +++ b/include/boost/bind/bind.hpp @@ -172,7 +172,7 @@ public: list( A... a ): data_( a... ) {} -#if BOOST_MSVC +#if defined(BOOST_MSVC) # pragma warning( push ) # pragma warning( disable: 4100 ) // unreferenced formal parameter 'a2' #endif @@ -197,7 +197,7 @@ public: unwrapper::unwrap( f, 0 )( a2[ std::get( data_ ) ]... ); } -#if BOOST_MSVC +#if defined(BOOST_MSVC) # pragma warning( pop ) #endif diff --git a/include/boost/bind/detail/tuple_for_each.hpp b/include/boost/bind/detail/tuple_for_each.hpp index b1091ca..d1eabff 100644 --- a/include/boost/bind/detail/tuple_for_each.hpp +++ b/include/boost/bind/detail/tuple_for_each.hpp @@ -14,7 +14,7 @@ #include #include -#if BOOST_MSVC +#if defined(BOOST_MSVC) # pragma warning( push ) # pragma warning( disable: 4100 ) // unreferenced formal parameter 'tp' #endif @@ -57,7 +57,7 @@ template F tuple_for_each( F&& f, Tp1&& tp1, Tp2& } // namespace _bi } // namespace boost -#if BOOST_MSVC +#if defined(BOOST_MSVC) # pragma warning( pop ) #endif