[Dbus-cxx-devel] dbus-cxx 0.6.0 released
Status: Beta
Brought to you by:
rvinyard
From: Rick L. V. Jr. <rvi...@cs...> - 2010-01-22 20:03:23
|
dbus-cxx is a C++ wrapper for the dbus library http://dbus-cxx.sourceforge.net ===== 0.6.0 ===== This release is primarily a bug fix release. However, this resulted in significant changes to the error handling so I have bumped the minor release number. The dbus error wrapper was modified to provide smart pointers for all error objects. The reference counting of the smart pointers will prevent an issue that resulted in double freeing dbus errors in the previous error implementation. Errors thrown are now smart pointer instances of error objects and can be accessed as Error::pointer. This keeps the syntax for errors inline with the other smart pointers used throughout dbus-cxx. This also means that simple boolean tests such as the following are no longer valid: Error error; if (error) ... This would test the smart pointer rather than test for the error. To test whether an error is set you would need to test the is_set() method of the error class as in the following: Error::pointer error; if (error->is_set()) ... Thanks to Tyler Conant for hunting down the double free Error class issue. Fixed logic error in CallMessage::expects_reply() Thanks to Julien Bonjean for catching this one |