forked from boostorg/regex
Fixes and testing update for MSVC in C++20 mode.
This commit is contained in:
@ -141,7 +141,7 @@ private:
|
||||
void cow()
|
||||
{
|
||||
// copy-on-write
|
||||
if(pdata.get() && !pdata.unique())
|
||||
if(pdata.get() && (pdata.use_count() > 1))
|
||||
{
|
||||
pdata.reset(new impl(*(pdata.get())));
|
||||
}
|
||||
|
@ -201,7 +201,7 @@ private:
|
||||
void cow()
|
||||
{
|
||||
// copy-on-write
|
||||
if(pdata.get() && !pdata.unique())
|
||||
if(pdata.get() && (pdata.use_count() > 1))
|
||||
{
|
||||
pdata.reset(new impl(*(pdata.get())));
|
||||
}
|
||||
|
@ -133,7 +133,7 @@ private:
|
||||
void cow()
|
||||
{
|
||||
// copy-on-write
|
||||
if(pdata.get() && !pdata.unique())
|
||||
if(pdata.get() && (pdata.use_count() > 1))
|
||||
{
|
||||
pdata.reset(new impl(*(pdata.get())));
|
||||
}
|
||||
|
@ -200,7 +200,7 @@ private:
|
||||
void cow()
|
||||
{
|
||||
// copy-on-write
|
||||
if(pdata.get() && !pdata.unique())
|
||||
if(pdata.get() && (pdata.use_count() > 1))
|
||||
{
|
||||
pdata.reset(new impl(*(pdata.get())));
|
||||
}
|
||||
|
Reference in New Issue
Block a user