List:MySQL++« Previous MessageNext Message »
From:Steve Roberts Date:April 5 2005 2:49pm
Subject:RE: Patch to fix compile error.
View as plain text  
Yeah, sorry about the miscommunication among F5'ers.  Compiler is GCC
3.2.3 for Centos (RHEL 3 renamed & redistributed).

I don't know that your change works but I bet it does.  Will check
today.

-SR 

> -----Original Message-----
> From: Warren Young [mailto:mysqlpp@stripped] 
> Sent: Tuesday, April 05, 2005 5:15 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