Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: material.cpp(137) : error C2061: syntax error : identifier 'key'

Author: Gerd Isenberg

Date: 09:56:40 06/22/05

Go up one level in this thread


On June 22, 2005 at 10:39:28, Fabien Letouzey wrote:

>
>On June 22, 2005 at 07:42:53, Andrey Popov wrote:
>
>>#define KEY_INDEX(key) (uint32(key))
>>This definition is in "hash.h" file.
>
>Hi,
>
>Is my macro incorrect C++?

For C++ the syntax looks like constructing an object of uint32.
Cast operator requires parantheses, as already pointed out.

Gerd

>uint32 is a typedef.
>
>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.