mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-04 10:43:08 +01:00
Fix Windows build
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user