Question & Answer
Question
How do you change the order of friend dependency and typedef declarations of inner classes using code respect and source artifacts in IBM Rational Rhapsody?
Cause
You added friend dependencies and typedef declarations to your inner class. However, the order of the code generation is not as expected and causes compiler errors.
Examples of compiler errors:
- C2371: 'OuterClass::InnerClass' : redefinition; different basic types
- C2649: 'OuterClass::InnerClass' : is not a 'class'
Answer
You can copy your IBM Rational Rhapsody generated source code to different positions in the class. Then, IBM Rational Rhapsody round trip the source code back into your UML (Unified Modelling Language) Model.
Your changes persist in Source Artifact model elements.
Product Synonym
Rational Rhapsody
Was this topic helpful?
Document Information
Modified date:
27 May 2022
UID
swg21996300