![]() |
Telelogic Rhapsody (steve huntington) | ![]() |
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 |
![]() |
![]()
|
![]() |
|
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 |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.