Book a Demo

Author Topic: Class Template code generation  (Read 3109 times)

Hexamon

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Class Template code generation
« on: April 22, 2004, 09:08:24 am »
This is not to be confused with EA templates for code generation. It's about generating code for Parameterized Class Templates. The problem, I'm observing, is that it seems to generate header files only. Is this a normal behavior? I was unable to find any config option to turn the implementation generation on.

In general, the docs seem to be extremally scarse about class templates. Is there more info?


Barry_Pearce

  • EA User
  • **
  • Posts: 70
  • Karma: +0/-0
    • View Profile
Re: Class Template code generation
« Reply #1 on: June 24, 2004, 10:57:36 am »
Paramertized classes in C++ (i assume here because you dont say) are only header files anyway.....

You must place the entire code in a single header file so that the compiler can instantiate (and generate) the instance correctly.