Commit 9045f690 by Robert Lipe

Mark call to sort() as error, per Alexandre Oliva.

From-SVN: r20157
parent 1f4d936f
#include <vector.h>
#include <algo.h>
template <class T> class Expr
{
public :
Expr(){};
Expr(const T&){};
};
template <class T >
inline bool compare(const Expr<T> a, const Expr<T> b){ return true; };
int main()
{
vector<int> a(3);
sort( a.begin(), a.end(), compare ); // ERROR - no matching function
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment