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/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]