1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-15 23:59:37 +02:00

Revert a piece of d420fde that miscompiles with MSVC

This commit is contained in:
Paul Licameli 2020-08-25 10:10:07 -04:00
parent 41ea189075
commit 47588baffc

View File

@ -876,9 +876,10 @@ public:
//! Return an iterator that replaces the predicate
/*! Advance to the first position at or after the old position that satisfies the new predicate,
or to the end */
TrackIter Filter( FunctionType pred2 ) const
template < typename Predicate2 >
TrackIter Filter( const Predicate2 &pred2 ) const
{
return { this->mBegin, this->mIter, this->mEnd, std::move(pred2) };
return { this->mBegin, this->mIter, this->mEnd, pred2 };
}
//! Return an iterator for a subclass of TrackType (and not removing const) with same predicate