1 | diff -Naur boost_1_50_0_beta1/libs/regex/src/regex_raw_buffer.cpp boost_1_50_0_beta1_regexpatch/libs/regex/src/regex_raw_buffer.cpp
|
---|
2 | --- boost_1_50_0_beta1/libs/regex/src/regex_raw_buffer.cpp 2005-01-21 22:58:42.000000000 +0530
|
---|
3 | +++ boost_1_50_0_beta1_regexpatch/libs/regex/src/regex_raw_buffer.cpp 2012-06-27 12:22:26.000000000 +0530
|
---|
4 | @@ -45,6 +45,7 @@
|
---|
5 | // allocate and copy data:
|
---|
6 | register pointer ptr = static_cast<pointer>(::operator new(newsize));
|
---|
7 | BOOST_REGEX_NOEH_ASSERT(ptr)
|
---|
8 | + BOOST_REGEX_NOEH_ASSERT(start || !datasize)
|
---|
9 | std::memcpy(ptr, start, datasize);
|
---|
10 |
|
---|
11 | // get rid of old buffer:
|
---|