blob: d4a4c60b7c8b2fc9dada6e5040079fb5b09df34d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// Build don't link:
// GROUPS passed old-abort
typedef int element;
class Pix {
public:
Pix();
Pix(const Pix&);
// Friend functions so that v == x works as does x == v works
friend int operator==(void *v, const Pix& x)
{ return v == index; }// ERROR - .*
friend int operator==(void *v, const Pix& x)
{ return v != index; }// ERROR - .*
private:
// friend class List<T>;
element *index;
};
|