Author: Gerd Isenberg
Date: 01:53:10 06/23/05
Go up one level in this thread
On June 23, 2005 at 04:15:32, Fabien Letouzey wrote: >On June 22, 2005 at 12:56:40, Gerd Isenberg wrote: > >>For C++ the syntax looks like constructing an object of uint32. >>Cast operator requires parantheses, as already pointed out. > >Hi Gerd, > >I use this notation for all scalar types, as I find it more readable that C >casts. Hi Fabien, #define KEY_INDEX(key) (uint32(key)) i was not aware that this syntax, where a type is used like a identifier of a function (or C++ constructor) is legal ansi C. Isn't your intention is to cast explicitly? Like this inline-function: inline uint32 keyIndex(uint64 key) ( return (uint32)(key & 0xffffffff): } >I fail to understand why it is a fatal error, assuming a default >constructor. Copy constructor? I guess Compiler implementation depending issues. Gerd > >Fabien.
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.