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: typename keyword isn't known, reverse engineering
Topic Summary:
Created On: 8-Mar-2007 07:57
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.
 8-Mar-2007 07:57
User is offline View Users Profile Print this message


Orr Weisman

Posts: 3
Joined: 8-Mar-2007

Hi all,
When reverse engineering C++ code that is compliant with visual studio 2005's ANSI C++ standards, I've encountered a problem. Visual 2005 forces the use of the typename keyword when (and I quote) : "This keyword must be used if the name is a qualified name dependent on a template argument". So for example, the code I try to reverse engineer is:
template <class T>
class EXPIMP Enum : public T
{
public:

Enum(typename T::EnumConst val):index(find(val)){};
.....

Unfortunately, Rhapsody 7.0 does not know this keyword and subsequently in this constructor it inserts the parameter val to the model as UNKOWN TYPE. Needless to say when generating the code from the reverse engineered model, this does not fly.
If anyone can direct me on how to solve this problem, I will be most grateful.
Orr
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.