Re: Class templates and friend function templates
- From: "Carl Daniel [VC++ MVP]" <cpdaniel_remove_this_and_nospam@xxxxxxxxxxxxxxx>
- Date: Sat, 23 Jul 2005 16:35:59 -0700
Carl Daniel [VC++ MVP] wrote:
> template <class U,class V>
> friend bool operator == <T>(U u, V v);
should be:
template <class U,class V>
friend bool operator == <T>(C<U> u, C<V> v);
Oddly, VC++ likes it either way, Comeau likes neither. More than likely
it's a VC bug that this code compiles (and appears to behave as desired).
-cd
.
- Follow-Ups:
- Re: Class templates and friend function templates
- From: Tom Widmer [VC++ MVP]
- Re: Class templates and friend function templates
- From: John Carson
- Re: Class templates and friend function templates
- References:
- Class templates and friend function templates
- From: BigMan
- Re: Class templates and friend function templates
- From: Carl Daniel [VC++ MVP]
- Class templates and friend function templates
- Prev by Date: Re: How to set a backgroundcolor for a windows control (Trackbar) ?
- Next by Date: Re: Different C runtime libraries
- Previous by thread: Re: Class templates and friend function templates
- Next by thread: Re: Class templates and friend function templates
- Index(es):
Relevant Pages
|
Loading