Author Topic: C++11 variadic template parameters notation in UML  (Read 13810 times)

g.makulik

  • EA User
  • **
  • Posts: 355
  • Karma: +0/-0
    • View Profile
C++11 variadic template parameters notation in UML
« 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:


Best regards,
Günther
« Last Edit: August 23, 2013, 07:18:07 am by g.makulik »
Using EA9.3, UML2.3, C++, linux, my brain, http://makulik.github.com/sttcl/

g.makulik

  • EA User
  • **
  • Posts: 355
  • Karma: +0/-0
    • View Profile
Re: C++11 variadic template parameters notation in
« Reply #1 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:



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?
Using EA9.3, UML2.3, C++, linux, my brain, http://makulik.github.com/sttcl/

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: C++11 variadic template parameters notation in
« Reply #2 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.

g.makulik

  • EA User
  • **
  • Posts: 355
  • Karma: +0/-0
    • View Profile
Re: C++11 variadic template parameters notation in
« Reply #3 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?
Using EA9.3, UML2.3, C++, linux, my brain, http://makulik.github.com/sttcl/