From 65eddbb2f0716e56c3bd98fb31abe513b58c1757 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Mon, 11 Oct 2021 20:07:06 +0200 Subject: [PATCH] Small fix for those using -Wsign-conversion (#21) * Small fix for those using -Wsign-conversion * Change I to std::size_t in wrapexcept_add_base A better fix for -Wsign-conversion --- include/boost/throw_exception.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/throw_exception.hpp b/include/boost/throw_exception.hpp index 1699a61..b8a2e49 100644 --- a/include/boost/throw_exception.hpp +++ b/include/boost/throw_exception.hpp @@ -25,6 +25,7 @@ #include #include #include +#include #if !defined( BOOST_EXCEPTION_DISABLE ) && defined( BOOST_BORLANDC ) && BOOST_WORKAROUND( BOOST_BORLANDC, BOOST_TESTED_AT(0x593) ) # define BOOST_EXCEPTION_DISABLE @@ -51,7 +52,7 @@ typedef char (&wrapexcept_s2)[ 2 ]; template wrapexcept_s1 wrapexcept_is_convertible( T* ); template wrapexcept_s2 wrapexcept_is_convertible( void* ); -template( static_cast< E* >( 0 ) ) ) > struct wrapexcept_add_base; +template( static_cast< E* >( 0 ) ) ) > struct wrapexcept_add_base; template struct wrapexcept_add_base {