1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-17 08:01:12 +02:00

Replace deprecated std::mem_fun and mem_fun_ref with mem_fn...

... which is easier to type and works whether you pass object pointers or
references to its operator ().
This commit is contained in:
Paul Licameli
2018-07-28 10:55:19 -04:00
parent 4d24c0249b
commit 8935fa106f
3 changed files with 6 additions and 6 deletions

View File

@@ -119,7 +119,7 @@ auto ODDecodeFFmpegTask::FromList(const std::list<TrackHolders> &channels) -> St
Channels channels;
channels.reserve(holders.size());
transform(holders.begin(), holders.end(), back_inserter(channels),
mem_fun_ref(&TrackHolders::value_type::get)
mem_fn(&TrackHolders::value_type::get)
);
return channels;
}