Book a Demo

Author Topic: refactoring template methods  (Read 3944 times)

Luke1410

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
refactoring template methods
« on: April 23, 2008, 05:16:18 am »
When I try to import my current code base, EA reports the following error:
Quote
"There was an error parsing [...]idmap.h on line 573. Unexpected symbol: IDType
You may need to define a language macro."

The corresponding line is:
Code: [Select]
template<class BaseClassType, typename IDType> template<class SubClassType> SubClassType* AutoIDMap<BaseClassType, IDType>::FindObject(const IDType& id) const
{
[...]
}

The class is a template class called AutoIDMap which takes two template parameters (BaseClassType and IDType). The method itself is a template method taking one template parameter called SubClassType.

I'm a bit lost here, since I'm unsure whether I'm doing something wrong or found a bug in EA nobody else has mentioned yet in the forums.
« Last Edit: April 23, 2008, 05:17:30 am by Luke1410 »

Luke1410

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: refactoring template methods
« Reply #1 on: April 30, 2008, 06:56:58 pm »
For those who are interested:

I sent a support request to Sparx and they confirmed that it's a reproducable issue which should be resolved in the next release (current release being 7.1 Build 829).