2002-08-22 Paolo Carlini <pcarlini@unitus.it>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.robertl / eb42.C
blobc27aa8d2df7c8b04b5b8008a59039e8ef56358a0
1 //Build don't link:
2 #include <vector>
3 #include <algorithm>
5 template <class T> class Expr
7 public :
8 Expr(){};
9 Expr(const T&){};
12 template <class T >
13 inline bool compare(const Expr<T> a, const Expr<T> b){ return true; };
15 int main()
17   std::vector<int>     a(3);
18   std::sort( a.begin(), a.end(), compare ); // ERROR - no matching function