From 8be90e476a1ef439869715b3e68fee48e2ceaabf Mon Sep 17 00:00:00 2001 From: Matt Borland Date: Tue, 9 May 2023 13:05:11 +0200 Subject: [PATCH] Remove duplicate safebuffers macro --- include/boost/charconv/detail/config.hpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/include/boost/charconv/detail/config.hpp b/include/boost/charconv/detail/config.hpp index 8efdad9..b2501af 100644 --- a/include/boost/charconv/detail/config.hpp +++ b/include/boost/charconv/detail/config.hpp @@ -7,7 +7,6 @@ #include -// TODO: BOOST_ASSERT is currently unused. // Once library is complete remove this block, and Boost.Assert from the CML if still unused. #ifndef BOOST_CHARCONV_STANDALONE # include @@ -109,15 +108,6 @@ static_assert((BOOST_CHARCONV_ENDIAN_BIG_BYTE || BOOST_CHARCONV_ENDIAN_LITTLE_BY # define BOOST_CHARCONV_IF_CONSTEXPR BOOST_IF_CONSTEXPR #endif -// Suppress additional buffer overrun check. -// I have no idea why MSVC thinks some functions here are vulnerable to the buffer overrun -// attacks. No, they aren't. -#if defined(_MSC_VER) && !defined(__clang__) && !defined(__GNUC__) - #define BOOST_CHARCONV_SAFEBUFFERS __declspec(safebuffers) -#else - #define BOOST_CHARCONV_SAFEBUFFERS -#endif - // Clang < 4 return type deduction does not work with the policy implementation #ifndef BOOST_NO_CXX14_RETURN_TYPE_DEDUCTION # if (defined(__clang__) && __clang_major__ < 4) || (defined(_MSC_VER) && _MSC_VER == 1900)