Re: [Dbus-cxx-users] [Dbus-cxx-devel] dbus-cxx 0.6.0 released
Status: Beta
Brought to you by:
rvinyard
From: Oliver K. <oli...@se...> - 2010-01-26 06:26:38
|
May I ask you for what reasons yout throw exceptions as smart-pointers? thx and best regards, Oliver Rick L. Vinyard, Jr. schrieb: > 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 > > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for Conference > attendees to learn about information security's most important issues through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Dbus-cxx-devel mailing list > Dbu...@li... > https://lists.sourceforge.net/lists/listinfo/dbus-cxx-devel > > |