File libqtpod-0.4.2.patch of Package libqtpod
--- src/utils.h
+++ src/utils.h
@@ -44,6 +44,8 @@
#define MAC_EPOCH_DELTA 2082844800
+#include <algorithm>
+
namespace itunesdb {
namespace utils {
@@ -590,7 +594,7 @@
*/
void randomize() {
++m_version; // invalidate iterators
- std::random_shuffle( BaseContainerType::begin(), BaseContainerType::end() );
+ random_shuffle( BaseContainerType::begin(), BaseContainerType::end() );
}
struct SmallerBinaryPredicate {
@@ -630,7 +634,7 @@
SmallerBinaryPredicate pred( m_comparator );
FindFirstNotLessThan finder( pred, item );
- PrivateIterator pos = std::find_if( BaseContainerType::begin(), BaseContainerType::end(), finder );
+ PrivateIterator pos = find_if( BaseContainerType::begin(), BaseContainerType::end(), finder );
if ( pos == BaseContainerType::end() ) {
idx = BaseContainerType::size();
BaseContainerType::push_back( item );