Book a Demo

Author Topic: determination of "classHasConstructor"  (Read 2129 times)

jst

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
determination of "classHasConstructor"
« on: September 08, 2006, 04:13:38 am »
Hi,
i've got another question to the code generator for C++.

In which way and when is the value of the "classHasConstructor" variable been set?

It would be fine, not to have an empty constructor

  myClass::myClass();

without parameters, if there is already a constructor with a parameterset, like

  myClass::myClass(int P1=0, int P2=0);

Are there any solutions for that?

Thanks,
jst

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: determination of "classHasConstructor&quo
« Reply #1 on: September 10, 2006, 03:11:00 pm »
It's checking for a default constructor, and will only work for the supported languages or classes that use the constructor name matches the class name convention.

If you don't want a default constructor generated then I'd recommend turning of the option (at least for that class).  To change options for individual classes go to generate for a single class and click advanced.