mirror of
https://github.com/boostorg/regex.git
synced 2025-07-16 13:52:17 +02:00
@ -46,7 +46,8 @@ void BOOST_REGEX_CALL raw_storage::resize(size_type n)
|
||||
// allocate and copy data:
|
||||
register pointer ptr = static_cast<pointer>(::operator new(newsize));
|
||||
BOOST_REGEX_NOEH_ASSERT(ptr)
|
||||
std::memcpy(ptr, start, datasize);
|
||||
if(start)
|
||||
std::memcpy(ptr, start, datasize);
|
||||
|
||||
// get rid of old buffer:
|
||||
::operator delete(start);
|
||||
|
Reference in New Issue
Block a user