Opened 15 years ago
Closed 15 years ago
#980 closed Patches (fixed)
boost.format vc8/win32 compilation warning
Reported by: | Owned by: | Samuel Krempp | |
---|---|---|---|
Milestone: | Boost 1.35.0 | Component: | format |
Version: | Boost 1.34.0 | Severity: | Cosmetic |
Keywords: | Cc: |
Description
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.
Change History (8)
comment:1 by , 15 years ago
comment:2 by , 15 years ago
Yes. But despite vc8's 'safe' library isn't officially supported, I've seen that some other boost libraries support it quite well. Is it a problem to add a simple workaround to boost.format too?
comment:3 by , 15 years ago
But should Boost support such a non standard library? Isn't SCL_SECURE_NO_DEPRECATE the best solution until the safe routines are standardized?
Is this change really wanted in Boost 1.34.1?
/$
comment:4 by , 15 years ago
Milestone: | Boost 1.34.1 |
---|
This is not a 1.34.1 boost does not make a concerted effort to support the "Safe" C++ Library in MSVC 8.
comment:5 by , 15 years ago
Owner: | set to |
---|
comment:6 by , 15 years ago
Status: | new → assigned |
---|
comment:7 by , 15 years ago
Component: | Building Boost → format |
---|
comment:8 by , 15 years ago
Milestone: | → Boost 1.35.0 |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Warning suppressed in SVN Trunk.
Is the ticket about the same warnings as the ones below?
From http://www.boost.org/more/version_history.html