• Advertisement
Sign in to follow this  

UML - C++ templates

This topic is 4755 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I've been wondering how UML generalizes to C++ templates? Assume we have something like template <class State, class Action> class Planner { std::list<Action> GetPlan ( const State& initialState, const State& goalState ); }; At the moment I'm using "real classes" for State and Action in UML, and drawing a line (not an association) from them to Planner, stating that it's about templates. But this all seems so ad hoc. I guess this problem has been studied by other people who came up with something more clean and general? -- Mikko

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement