This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Ambiguous conversion with gcc 3.3/3.4
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: Olivier FOURDAN <olivier dot fourdan at regis-dgac dot net>, gcc-help at gcc dot gnu dot org
- Date: Fri, 17 Sep 2004 06:32:26 -0500
- Subject: Re: Ambiguous conversion with gcc 3.3/3.4
- References: <414AB214.80707@regis-dgac.net>
Hi Olivier,
What purpose do these serve...
template<typename T> bool operator ==(const T *left ,const
_NULL_PTPL_RUNTIME_ &right) {
return (right.operator ==(left));
};
template<typename T> bool operator !=(const T *left ,const
_NULL_PTPL_RUNTIME_ &right) {
return (right.operator !=(left));
};
...?
That functionality is already available in your class template through the
auto-conversion in the operator T*. Which is going to lead to ambiguity.
--Eljay