#2 new is a reserved keyword in c++

closed-fixed
nobody
None
5
2005-04-22
2005-04-06
No

ga_sa.h contains the prototypes

boolean ga_sa_boltzmann_acceptance(..., entity *new);
boolean ga_sa_linear_acceptance(..., entity *new);

this makes it impossible to include this header from C++.

I suggest to rename the variables to something
different than "new"
(e.g. "new_entity").

Discussion

  • Logged In: NO

    Thanks for this bug report. This issue is fixed in the CVS
    archive and therefore also in the forthcoming 0.1849 release.

     
  • Stewart Adcock
    Stewart Adcock
    2005-04-22

    • status: open --> closed-fixed