It can be very useful to have a dedicated C++ wrapper that can also provide some utilities using C++ features like function overloading or default parameters (eg: allocator parameters can default to the heap allocator).
This wrapper can do the following:
Use namespaces for all the names instead of rf_.
Use constexpr for all the constants instead of macros.
It can be very useful to have a dedicated C++ wrapper that can also provide some utilities using C++ features like function overloading or default parameters (eg: allocator parameters can default to the heap allocator).
This wrapper can do the following:
rf_
.constexpr
for all the constants instead of macros.rf_context
into a class with methods.What to avoid: