Book a Demo

Author Topic: C++ Code generation and namespaces  (Read 2430 times)

Graham_Labdon

  • EA User
  • **
  • Posts: 66
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
C++ Code generation and namespaces
« on: March 23, 2009, 09:05:40 pm »
We are having some difficulty with generating code with namespaces. Specifically we set up the following -
Package1
    Class1
    Class2
    Package2
        Class3
    Package3
        Class4

We set yhe option for C++ to generate namespaces and set Package3 as namespace root.
This produced code as expected.
However if we then remove the namespace root from Package3 and regenerate the code the cpp file for Class4 contains the class declaration for Class4 inside a namespace. The only workaround for this is to delete the files and start again.
Is there a better way that this?