1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-31 07:59:27 +02:00

Fix Windows build

This commit is contained in:
Paul Licameli 2019-05-21 18:14:57 -04:00
parent 1639df03a4
commit a1f08ad4e0

View File

@ -124,7 +124,8 @@ template< typename Container > struct Copyable< Container, DeepCopying >
// Build then swap for strong exception guarantee
Copyable temp;
for ( auto &&p : other ) {
temp.push_back( p ? p->Clone() : (decltype( p->Clone() )){} );
using Ptr = decltype( p->Clone() );
temp.push_back( p ? p->Clone() : Ptr{} );
}
this->swap( temp );
}