Skip to content

Bug: GenericSkeleton::GetEvents() retuns a const EventMap but Allocate()/Send() need mutability #467

@NEOatNHNG

Description

@NEOatNHNG

Description

The GenericSkeleton::GetEvents() returns a const EventMap which means all the elements are also const. But in order to Allocate() or Send() an event, the user needs a mutable GenericEvent which means we have to resort to ugly things like const_cast.

Error Occurrence Rate

None

How to reproduce

No response

Supporting Information

No response

Classification

minor

Affected Version

0.5

Expected Closure Version

0.5

Category

  • Safety Related
  • Security Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions