Book a Demo

Author Topic: namespaces  (Read 2481 times)

Martin Terreni

  • EA User
  • **
  • Posts: 672
  • Karma: +0/-0
  • Sorry, I can't write
    • View Profile
namespaces
« on: July 19, 2005, 08:05:33 am »
when generating code (using build 767)
I get in CPP file namespace::className.

I think is it wronge, but aside this, how can I avoid it?
Recursion definition:
If you don’t understand the definition read "Recursion definition".

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: namespaces
« Reply #1 on: July 19, 2005, 03:50:22 pm »
Where are you getting this?  Each place would require a different change to the templates.
  • The using statement.
  • The qualification on the method name.
  • On types. (Parameter and method return)
Simon

Martin Terreni

  • EA User
  • **
  • Posts: 672
  • Karma: +0/-0
  • Sorry, I can't write
    • View Profile
Re: namespaces
« Reply #2 on: July 19, 2005, 10:09:43 pm »
when generating C++ code (even with all defaults templates) I get in the CPP file :
"using namespace::classname" , instead of insteda of "using namespace".

I menaged to avoid it using REPLACE macro and replacing it with empty, but since you declare class in all methods I don't understand the reason for this decleration of namespace that includes classname.

what is the reason for this?
Recursion definition:
If you don’t understand the definition read "Recursion definition".