From 819b3dd67ba9dcb949fb1fc9ed8619374617b154 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Mon, 11 Oct 2021 13:18:23 +0200 Subject: [PATCH] Small fix for those using -Wsign-conversion --- include/boost/tuple/detail/tuple_basic.hpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/boost/tuple/detail/tuple_basic.hpp b/include/boost/tuple/detail/tuple_basic.hpp index bed3042..5a7de65 100644 --- a/include/boost/tuple/detail/tuple_basic.hpp +++ b/include/boost/tuple/detail/tuple_basic.hpp @@ -34,6 +34,7 @@ #include // needed for the assignment from pair to tuple +#include // for std::size_t #include #include @@ -676,20 +677,20 @@ struct make_tuple_traits { // All arrays are converted to const. This is because make_tuple takes its // parameters as const T& and thus the knowledge of the potential // non-constness of actual argument is lost. -template struct make_tuple_traits { +template struct make_tuple_traits { typedef const T (&type)[n]; }; -template +template struct make_tuple_traits { typedef const T (&type)[n]; }; -template struct make_tuple_traits { +template struct make_tuple_traits { typedef const volatile T (&type)[n]; }; -template +template struct make_tuple_traits { typedef const volatile T (&type)[n]; };