[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: (Re)Build problem with g++ 4.0

On Fri, Jul 08, 2005 at 12:06:32AM +0200, Steinar H. Gunderson wrote:
> {static,dynamic,reinterpret}_cast are for pointers only.

Oops, I was wrong there, of course. You can use static_cast if you'd like.
For "simpler" types (ie. those with only one word) you can use
type(expression) as well, just like a constructor (e.g. "int(x)").

/* Steinar */
Homepage: http://www.sesse.net/

Reply to: