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