Skip to content
This repository was archived by the owner on Aug 27, 2024. It is now read-only.
This repository was archived by the owner on Aug 27, 2024. It is now read-only.

Generate error when static_callable's object is trivially moveable #66

@kammce

Description

@kammce

Typically, drivers will use a lambda that captures this when using static_callable. When the object is moved, this points to invalid memory. The move constructor should do the work of reestablishing the interrupt to point to the new location. At this moment, this operation is not trivial and must be done manually for each platform driver that utilizes interrupts/static callable, unfortunately.

https://en.cppreference.com/w/cpp/types/is_move_constructible
https://en.cppreference.com/w/cpp/types/is_move_assignable

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions