Make use of std::unique_ptr<> to manage the lifetime of members or container elements, so that manual invocations of delete can be avoided. This also provides for exception safety. Since std::unique_ptr<> is only movable but not copyable, adapt the code to avoid copies and assignments of these pointers. |
||
---|---|---|
.. | ||
libsigrokcxx.hpp |