mirror of
https://github.com/boostorg/circular_buffer.git
synced 2026-02-03 09:02:12 +00:00
Compare commits
2 Commits
boost-1.44
...
boost-1.48
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4540bea6d5 | ||
|
|
ed237fa058 |
@@ -34,6 +34,12 @@
|
||||
#include <stddef.h>
|
||||
#endif
|
||||
|
||||
#if defined(BOOST_NO_STDC_NAMESPACE)
|
||||
namespace std {
|
||||
using ::memset;
|
||||
}
|
||||
#endif
|
||||
|
||||
namespace boost {
|
||||
|
||||
/*!
|
||||
@@ -2081,7 +2087,7 @@ private:
|
||||
throw_exception(std::length_error("circular_buffer"));
|
||||
#if BOOST_CB_ENABLE_DEBUG
|
||||
pointer p = (n == 0) ? 0 : m_alloc.allocate(n, 0);
|
||||
::memset(p, cb_details::UNINITIALIZED, sizeof(value_type) * n);
|
||||
std::memset(p, cb_details::UNINITIALIZED, sizeof(value_type) * n);
|
||||
return p;
|
||||
#else
|
||||
return (n == 0) ? 0 : m_alloc.allocate(n, 0);
|
||||
@@ -2124,7 +2130,7 @@ private:
|
||||
m_alloc.destroy(p);
|
||||
#if BOOST_CB_ENABLE_DEBUG
|
||||
invalidate_iterators(iterator(this, p));
|
||||
::memset(p, cb_details::UNINITIALIZED, sizeof(value_type));
|
||||
std::memset(p, cb_details::UNINITIALIZED, sizeof(value_type));
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user