From 4521eff93cd02b3883727c7e5104274bab3ddb87 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 8 May 2017 18:59:19 +0300 Subject: [PATCH] Cast the result of f() to void (avoid op,) --- include/boost/tuple_for_each.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/tuple_for_each.hpp b/include/boost/tuple_for_each.hpp index 35d2b7a..2d2d135 100644 --- a/include/boost/tuple_for_each.hpp +++ b/include/boost/tuple_for_each.hpp @@ -17,7 +17,7 @@ namespace detail template BOOST_CONSTEXPR F tuple_for_each_impl( Tp && tp, boost::integer_sequence, F && f ) { using A = int[sizeof...(J)]; - return (void)A{ (f(std::get(std::forward(tp))), 0)... }, std::forward(f); + return (void)A{ ((void)f(std::get(std::forward(tp))), 0)... }, std::forward(f); } } // namespace detail