Skip to content

Conversation

@atta-ullah01
Copy link
Contributor

Summary of Changes

It adds the override specifier to all overridden virtual functions and removes the redundant virtual keyword in the following classes:

  • 3D: Aff_transformation_repC3, Translation_repC3, Scaling_repC3
  • 2D: Aff_transformation_repC2, Translation_repC2, Scaling_repC2, Rotation_repC2, Reflection_repC2

These changes ensure adherence to C++ Core Guideline C.128 ("Virtual functions should specify exactly one of virtual, override, or final"). This improves code safety by enforcing compile-time checks against accidental signature mismatches.

Release Management

  • Affected package(s): Kernel_23
  • Issue(s) solved (if any):
  • Feature/Small Feature (if any):
  • Link to compiled documentation:
  • License and copyright ownership:

Add the override keyword to all virtual function overrides in the
derived transformation representation classes:

3D: Aff_transformation_repC3, Translation_repC3, Scaling_repC3
2D: Aff_transformation_repC2, Translation_repC2, Scaling_repC2,
    Rotation_repC2, Reflection_repC2

This follows C++ Core Guideline C.128: 'Virtual functions should
specify exactly one of virtual, override, or final.' The redundant
virtual keyword is removed in favor of override, which provides
compile-time safety against signature mismatches.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant