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