Sparx Systems Forum

Enterprise Architect => Uml Process => Topic started by: g.makulik on August 23, 2013, 04:18:58 am

Title: C++11 variadic template parameters notation in UML
Post by: g.makulik on August 23, 2013, 04:18:58 am
Does anyone know how to model C++11 variadic template parameters correctly in UML 2.2?
I've seen a number of UML profile models as a result from web-search, that seem to describe the construct of 'any number of optional template parameters'. Or do I just confuse this with the fact that any usual template parameter might be optional when a default is provided in the declaration?

EA's (10.0.1004) C++ reverse engineering feature ignores (fails on) template classes using a variadic template parameter list.

Here's a propopsal for a possibly valid notation:

(http://i.stack.imgur.com/Rsbqs.png)
Best regards,
Günther
Title: Re: C++11 variadic template parameters notation in
Post by: g.makulik on August 24, 2013, 10:34:46 pm
Finally I've come up with a slightly modified model, where I'm able to generate syntactically correct code from:

(http://i.stack.imgur.com/mBL9s.png)

The generated code cannot be reverse engineered though, EA's parser fails on it  :(. Are there any efforts made to improve EA's C++ parser for covering C++11 features?
Title: Re: C++11 variadic template parameters notation in
Post by: Eve on August 26, 2013, 09:15:52 am
The reason why EA is failing on it is that it hasn't been updated to support C++11 yet.
Title: Re: C++11 variadic template parameters notation in
Post by: g.makulik on August 26, 2013, 05:33:15 pm
Quote
The reason why EA is failing on it is that it hasn't been updated to support C++11 yet.
So you're working on it? Is there a hint for the version we can expect it?