This repository has been archived by the owner on Aug 27, 2024. It is now read-only.
Generate error when static_callable
's object is trivially moveable
#66
Labels
🐛 bug
Something isn't working
Typically, drivers will use a lambda that captures
this
when usingstatic_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
The text was updated successfully, but these errors were encountered: