Sparx Systems Forum

Enterprise Architect => Bugs and Issues => Topic started by: Luke1410 on April 23, 2008, 05:16:18 am

Title: refactoring template methods
Post by: Luke1410 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.
Title: Re: refactoring template methods
Post by: Luke1410 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).