summaryrefslogtreecommitdiff
path: root/boost/mp11/tuple.hpp
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2019-12-05 15:12:59 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2019-12-05 15:12:59 +0900
commitb8cf34c691623e4ec329053cbbf68522a855882d (patch)
tree34da08632a99677f6b79ecb65e5b655a5b69a67f /boost/mp11/tuple.hpp
parent3fdc3e5ee96dca5b11d1694975a65200787eab86 (diff)
downloadboost-b8cf34c691623e4ec329053cbbf68522a855882d.tar.gz
boost-b8cf34c691623e4ec329053cbbf68522a855882d.tar.bz2
boost-b8cf34c691623e4ec329053cbbf68522a855882d.zip
Imported Upstream version 1.67.0upstream/1.67.0
Diffstat (limited to 'boost/mp11/tuple.hpp')
-rw-r--r--boost/mp11/tuple.hpp17
1 files changed, 11 insertions, 6 deletions
diff --git a/boost/mp11/tuple.hpp b/boost/mp11/tuple.hpp
index afcd119d8d..a5de900959 100644
--- a/boost/mp11/tuple.hpp
+++ b/boost/mp11/tuple.hpp
@@ -10,12 +10,17 @@
#include <boost/mp11/integer_sequence.hpp>
#include <boost/config.hpp>
-#include <boost/detail/workaround.hpp>
+#include <boost/config/workaround.hpp>
#include <tuple>
#include <utility>
#include <type_traits>
#include <cstddef>
+#if defined(BOOST_MSVC)
+# pragma warning( push )
+# pragma warning( disable: 4100 ) // unreferenced formal parameter 'tp'
+#endif
+
namespace boost
{
namespace mp11
@@ -69,15 +74,11 @@ template<class Tp, std::size_t... J, class F> BOOST_CONSTEXPR F tuple_for_each_i
return (void)A{ ((void)f(std::get<J>(std::forward<Tp>(tp))), 0)... }, std::forward<F>(f);
}
-#if BOOST_WORKAROUND( BOOST_MSVC, <= 1800 )
-
-template<class Tp, class F> BOOST_CONSTEXPR F tuple_for_each_impl( Tp && tp, integer_sequence<std::size_t>, F && f )
+template<class Tp, class F> BOOST_CONSTEXPR F tuple_for_each_impl( Tp && /*tp*/, integer_sequence<std::size_t>, F && f )
{
return std::forward<F>(f);
}
-#endif
-
} // namespace detail
template<class Tp, class F> BOOST_CONSTEXPR F tuple_for_each( Tp && tp, F && f )
@@ -89,4 +90,8 @@ template<class Tp, class F> BOOST_CONSTEXPR F tuple_for_each( Tp && tp, F && f )
} // namespace mp11
} // namespace boost
+#if defined(BOOST_MSVC)
+# pragma warning( pop )
+#endif
+
#endif // #ifndef BOOST_TUPLE_HPP_INCLUDED