Skip to content

Commit

Permalink
Make it work with Qt5 < 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Aug 11, 2016
1 parent 46f7c64 commit be3c780
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -403,6 +403,17 @@ static bool operator<( const QVariant &a, const QVariant &b )
}
#endif

#if QT_VERSION >= 0x050000 && QT_VERSION < 0x050600
#include <algorithm>
template <typename T>
bool operator<( const QList<T> &lhs, const QList<T> &rhs )
{
return std::lexicographical_compare( lhs.begin(), lhs.end(),
rhs.begin(), rhs.end() );
}
#endif


QgsFeatureIterator QgsPostgresProvider::getFeatures( const QgsFeatureRequest& request ) const
{
if ( !mValid )
Expand Down

0 comments on commit be3c780

Please sign in to comment.