Author Topic: Importing C++ with typedefs and standard libraries  (Read 2062 times)

AndyDent

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Importing C++ with typedefs and standard libraries
« on: July 26, 2010, 04:19:59 pm »
I just tried importing a moderately complex codebase and was very disappointed with the experience.

Firstly, simple standard types like std::string are not recognised and I can't find a way to add those headers.

Secondly, it doesn't seem to understand typedefs. We follow the common idiom of using typedefs to simplify complex templated types, eg:

typedef Cfs::Internal::CfsIOHandleBase<Cfs::Internal::CfsRawStorage>    CfsStorageHandleBase; 
class CfsStorageHandle : public CfsStorageHandleBase


It fails to recognise CfsStorageHandleBase in the last line, with an "unexpected symbol" error
« Last Edit: July 26, 2010, 04:21:37 pm by AndyDent »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: Importing C++ with typedefs and standard libra
« Reply #1 on: July 27, 2010, 08:14:07 am »
I just pasted the text you gave into a C++ file and it imported fine.  Two classes, one stereotyped as typedef.