1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-02 08:39:46 +02:00

Fix transform iterator code. It was only a missing #include.

This commit is contained in:
Paul Licameli 2018-01-02 08:21:16 -05:00
parent 1298ec8497
commit 0df4cd6c3f

View File

@ -382,6 +382,11 @@ namespace std {
}
}
#else
// To define function
#include <functional>
#endif
#if !(_MSC_VER >= 1800 || __cplusplus >= 201402L)
@ -1044,10 +1049,6 @@ make_iterator_range( const Container &container )
return { container.begin(), container.end() };
}
// 1st Jan 2018
// Commented out by James Crook until such time as we migrate to a newer MSVC.
#if OK_IN_MSVC_2013
/*
* Transform an iterator sequence, as another iterator sequence
*/
@ -1137,7 +1138,5 @@ make_value_transform_iterator(const Iterator &iterator, Function function)
using NewFunction = value_transformer<Function, Iterator>;
return { iterator, NewFunction{ function } };
}
#endif
#endif // __AUDACITY_MEMORY_X_H__