Use copy-init instead of direct-init for older clangs

This commit is contained in:
Peter Dimov
2021-06-13 20:45:50 +03:00
parent 0d8511f571
commit 66656f7044

View File

@@ -313,7 +313,7 @@ public:
{
if( flags_ != 1 )
{
std::error_code e2( *this );
std::error_code e2 = *this;
::new( d2_ ) std::error_code( e2 );
flags_ = 1;
}