PM94092: Code error on having nested template classes
Closed as program error.
Description ---------- Nested template class in template class generates syntactical wrong code. Please find a sample model attached where the behavior is observed using Rhapsody 8.0.3. In the attached model (Model803.zip) you will find a template class 'OuterC' with a nested template class 'InnerC'. The generated code does not compile because of wrong C++ syntax of the constructor/destructor of the inner class 'InnerC'. Modeling of inner template classes in template classes is not possible because of the reported error.
Code error on having nested template classes
There are 2 parts for this APAR: 1. The operations of a template that is nested inside another element should be in declaration - this is fixed. 2. Using an inner template class, outside of the owner class. - This looks like a bad modelling - as it breaks encapsulation. It seems like The proper thing to do here, is pull the inner template to reside the outer class. in any case - Rhapsody does not supports this - there is no option to choose the 'inner' template parameter. If customer insists this is what he wants - please open an RFE.
Reported component name
Reported component ID
Last modified date
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fixed component name
Fixed component ID
Applicable component levels