List:MySQL++« Previous MessageNext Message »
From:Warren Young Date:April 5 2005 12:14pm
Subject:Re: Patch to fix compile error.
View as plain text  
Kevin Regan wrote:
> -  template <class Type> operator Type () {throw BadNullConversion();}
> +  template <class Type> operator Type () {if (1) throw
> BadNullConversion();else return Type();}

I rejected this once before, because it's UGLY.  I'll accept:

template <class Type> operator Type ()
{
	throw BadNullConversion();
	return Type();
}

...if that fixes the warning.

Also, what compiler does this affect?
Thread
Patch to fix compile error.Kevin Regan4 Apr
  • Re: Patch to fix compile error.Warren Young5 Apr
RE: Patch to fix compile error.Steve Roberts5 Apr
RE: Patch to fix compile error.Kevin Regan5 Apr
RE: Patch to fix compile error.Kevin Regan5 Apr
  • Re: Patch to fix compile error.Warren Young5 Apr