repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.robertl
/
eb42.C
blob
c27aa8d2df7c8b04b5b8008a59039e8ef56358a0
1
//Build don't link:
2
#include <vector>
3
#include <algorithm>
4
5
template <class T> class Expr
6
{
7
public :
8
Expr(){};
9
Expr(const T&){};
10
};
11
12
template <class T >
13
inline bool compare(const Expr<T> a, const Expr<T> b){ return true; };
14
15
int main()
16
{
17
std::vector<int> a(3);
18
std::sort( a.begin(), a.end(), compare ); // ERROR - no matching function
19
}