forked from boostorg/bind
Suppress MSVC warnings
This commit is contained in:
@@ -172,6 +172,11 @@ public:
|
||||
|
||||
list( A... a ): data_( a... ) {}
|
||||
|
||||
#if BOOST_MSVC
|
||||
# pragma warning( push )
|
||||
# pragma warning( disable: 4100 ) // unreferenced formal parameter 'a2'
|
||||
#endif
|
||||
|
||||
template<class R, class F, class A2, std::size_t... I> R call_impl( type<R>, F & f, A2 & a2, _bi::index_sequence<I...> )
|
||||
{
|
||||
return unwrapper<F>::unwrap( f, 0 )( a2[ std::get<I>( data_ ) ]... );
|
||||
@@ -192,6 +197,10 @@ public:
|
||||
unwrapper<F>::unwrap( f, 0 )( a2[ std::get<I>( data_ ) ]... );
|
||||
}
|
||||
|
||||
#if BOOST_MSVC
|
||||
# pragma warning( pop )
|
||||
#endif
|
||||
|
||||
//
|
||||
|
||||
template<class R, class F, class A2> R operator()( type<R>, F & f, A2 & a2 )
|
||||
|
||||
Reference in New Issue
Block a user