libsigrok/bindings/cxx/include/libsigrokcxx
Daniel Elstner f17b454655 C++: Use smart pointers instead of manual delete
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.
2015-10-26 06:45:56 +01:00
..
libsigrokcxx.hpp C++: Use smart pointers instead of manual delete 2015-10-26 06:45:56 +01:00