mirror of
https://github.com/boostorg/charconv.git
synced 2026-02-08 22:52:27 +00:00
Remove duplicate safebuffers macro
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
|
||||
#include <boost/config.hpp>
|
||||
|
||||
// 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 <boost/assert.hpp>
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user