Skip to content
Snippets Groups Projects

Remove forbidden downcast

Merged Carsten Gräser requested to merge feature/remove-forbidden-downcast into master

This removes several constructors and assignments from base class in the class hierarchy around base_array. These removed methods are all implemented using a downcast which may result in undefined behaviour. Since they are not used anywhere in the core modules we can maybe remove them. According to @markus.blatt these base classes are all meant to be internal.

This may cause problems if user code explicitly uses the raw base classes and these methods. However, such user code would only be valid if the passed base class reference is actually an upcasted derived class which is very unlikely.

Merge request reports

Pipeline #1024 passed

Pipeline passed for b797918e on feature/remove-forbidden-downcast

Merged by avatar (Mar 22, 2025 10:39pm UTC)

Loading

Pipeline #1137 passed

Pipeline passed for d487fef6 on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading