brandonbraun653 / Chimera

A generalized high level interface to commonly used embedded systems resources
MIT License
4 stars 0 forks source link

(Consider) Refactor Interfaces To Remove Virtual Functions #12

Closed brandonbraun653 closed 5 years ago

brandonbraun653 commented 5 years ago

Currently the interface specifications depend upon virtual functions to guarantee that a specific interface exists in inheriting drivers. Unfortunately this dependency introduces overhead in the code due to unnecessary vtables. Investigate what must be done to get a compile time only interface spec that does not depend upon virtual functions.

https://isocpp.org/blog/2013/02/concepts-lite-constraining-templates-with-predicates-andrew-sutton-bjarne-s

https://stackoverflow.com/questions/44317289/c-interface-without-virtual-functions