Skip to content
This repository has been archived by the owner on Aug 24, 2020. It is now read-only.

C++ migration: Type correctness #14

Open
davidgraeff opened this issue Jul 16, 2018 · 0 comments
Open

C++ migration: Type correctness #14

davidgraeff opened this issue Jul 16, 2018 · 0 comments

Comments

@davidgraeff
Copy link

Wakaama does a lot of casting. Which is a common C pattern for allowing some kind of generic code. The code does compile with a lot of warnings if -pedantic is enabled and does not compile at all if -ansi is used.

C++ templates will allow a much greater type consistency and type correctness. It is safe to assume that the C++ compiler will create smaller/faster binaries if no type erasure takes place all the time.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Development

No branches or pull requests

1 participant