Subject: [Boost-bugs] [Boost C++ Libraries] #980: boost.format vc8/win32 compilation warning
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-05-23 10:08:01
#980: boost.format vc8/win32 compilation warning
-------------------------------+--------------------------------------------
Reporter: const_at_[hidden] | Type: Patches
Status: new | Milestone: Boost 1.34.1
Component: Building Boost | Version: release 1.34.0
Severity: Cosmetic | Keywords:
-------------------------------+--------------------------------------------
boost/format/alt_sstream_impl.hpp, line 252 generates warning due to
'secure'-ness of vc8 stl implementation
original boost:
{{{
if(0 < prev_size)
compat_traits_type::copy(newptr, oldptr, prev_size);
}}}
proposed change:
{{{
if(0 < prev_size)
#if defined(_MSC_VER) && (_MSC_VER == 1400)
compat_traits_type::_Copy_s(newptr, new_size, oldptr,
prev_size);
#else
compat_traits_type::copy(newptr, oldptr, prev_size);
#endif
}}}
or use BOOST_WORKAROUND macro.
I'm aware that vc8's stl is not officially supported by boost and it's not
a problem to patch it after each update locally, but I'd appreciate if I
wouldn't have to.
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/980>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:55 UTC