file R1480 and templated attributes of a class

1 month 3 weeks ago #5989 by Robert Hairgrove
The warning R1480 says: "An Attribute should always be typed by a primitive type"

Why is this so?

In this particular case, it is one of the template parameters for the template class to which it belongs. A template parameter can also be a class in C++, but it is not possible to designate a template type as "primitive" without knowing what the concrete type will be.

Can this be safely ignored?

Please Log in or Create an account to join the conversation.

1 month 2 days ago #6003 by ebr
Hi Robert,

This rule is more to highlight a good practice in UML modelling.
That's why it is only a warning and not an error. Of course, it can be ignored.

Best,
EBR

Please Log in or Create an account to join the conversation.

Moderators: tma
Time to create page: 0.383 seconds
^ Back to Top