smartheim / wakaamaNode

lwM2M library based on Wakaama for PlattformIO/cmake with easy object API
https://openhab-nodes.github.io/wakaamaNode/
MIT License
27 stars 18 forks source link

C++ migration: Object lifetimes #12

Open davidgraeff opened 6 years ago

davidgraeff commented 6 years ago

Wakaama uses structs a lot. But because C lacks constructors and destructors, a lot of boilerplate code just allocates/inits/deinits/frees those structs in various success and error code paths.

See https://github.com/martinmoene/string-view-lite