Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic Rhapsody (steve huntington)
Decrease font size
Increase font size
Topic Title: Reference to template class generated wrong
Topic Summary:
Created On: 12-Apr-2007 09:34
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 12-Apr-2007 09:34
User is offline View Users Profile Print this message


Orr Weisman

Posts: 3
Joined: 8-Mar-2007

For some reason Rhapsody generates code wrong in the following case:

A simple class is defined within a template class:

[COLOR=Blue]template <class T> class List{

class Iterator {
...
} //end of Iterator

} //end of List[/COLOR]

A typedef for the nested class is defined in a different class:

[COLOR=Blue]template <class T> ListView{
typedef List<T>::Iterator LocalIterator;
}[/COLOR]

Unfortunately Rhapsody generates this as
[COLOR=Blue]typedef List::Iterator LocalIterator;[/COLOR] (without <T> which just doesn't compile right.

Can anyone tell me if I am doing something wrong or is this a bug?
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic Rhapsody forum.
There are currently 1 users logged in.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.