List:MySQL++« Previous MessageNext Message »
From:Kevin Regan Date:April 5 2005 2:50pm
Subject:RE: Patch to fix compile error.
View as plain text  
Hi Warren,

This is for: 

> g++ -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking
--with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-49)

I'll test out the change below to see if it gets rid of the warning.

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