Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Solving the "constructor" problem in C++

Author: Russell Reagan

Date: 12:36:51 06/12/02

Go up one level in this thread


On June 12, 2002 at 15:33:23, Steffen Jakob wrote:

>I think I dont understand. Do you think in the following code the default ctor
>of class C would cost time?

It will cost some, and that small amount of time done many millions of times is
not cheap.

>You c++ compiler should optimize this call away (at
>leas g++ 3.0.2 which i have installed here does so).

I heard (but havn't tried it) that g++ handles this correctly, but that MS VC++
does not. I believe it was in the thread about "What's the best programming
language for chess" which was only a few days ago or maybe late last week, if
you'd like to see what exactly was said.

Russell



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.