blob: f86d0b67b95219c04c05ca0a988c9f521f4ef9b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Build don't link:
class mystream;
template <class T> class a {
public:
friend mystream& operator>> <>( mystream&, a<T>& thea );
private:
T amember;
};
template <class T> mystream& operator>>( mystream& s, a<T>& thea );
template<> mystream& operator>> <int>( mystream& s, a<int>& thea );
template class a<int>;
template<> mystream& operator>> <int>( mystream& s, a<int>& thea )
{
thea.amember = 0;
return s;
}
|