mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-31 07:59:27 +02:00
Fix Windows build
This commit is contained in:
parent
1639df03a4
commit
a1f08ad4e0
@ -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 );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user