Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
SPECIALIZED_FRIEND.cpp
Go to the documentation of this file.
1// checking template<> in friend specializations
2
3
25template <class T>
26struct S;
27
28template <class T>
29int operator== (const S<T>&, const S<T>&);
30
31template <class T>
32struct S
33{
34 friend int operator==<> (const S&, const S&);
35};
36
37template <class T>
38int operator== (const S<T>&, const S<T>&)
39{
40 return 1;
41}
42
43int foo ()
44{
45 S<int> s;
46 return !(s == s);
47}
#define s
int foo()
int operator==(const S< T > &, const S< T > &)