List:MySQL++« Previous MessageNext Message »
From:Kevin Regan Date:April 5 2005 2:59pm
Subject:RE: Patch to fix compile error.
View as plain text  
This fixes the problem.

Thanks!
Kevin

-----Original Message-----
From: Warren Young [mailto:mysqlpp@stripped]
Sent: Tue 4/5/2005 5:14 AM
To: MySQL++ Mailing List
Subject: Re: Patch to fix compile error.
 
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?

-- 
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:    http://lists.mysql.com/plusplus?unsub=1



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