RE: [Boost-users] protassign
-----Original Message----- From: Erik Thiele [mailto:erik@thiele-hydraulik.de] Sent: Wednesday, June 23, 2004 11:28 AM To: boost-users@lists.boost.org Subject: [Boost-users] protassign
now i can do:
void foo() { protassign<bool> foorunning_assigner(foorunning, true); dojobs(); dofoooo(); }
and that's all. is there one such thing in boost already???
[Nat] In the forthcoming Boost serialization library: http://www.rrsd.com/boost/ there's a state_saver template class that does what you're talking about: http://www.rrsd.com/boost/libs/serialization/doc/state_saver.html This seems useful enough to promote to a library more general than the serialization library.
"Nat Goodspeed"
From: Erik Thiele [mailto:erik@thiele-hydraulik.de]
now i can do:
void foo() { protassign<bool> foorunning_assigner(foorunning, true); dojobs(); dofoooo(); }
and that's all. is there one such thing in boost already???
[Nat] In the forthcoming Boost serialization library:
there's a state_saver template class that does what you're talking about:
http://www.rrsd.com/boost/libs/serialization/doc/state_saver.html
This seems useful enough to promote to a library more general than the serialization library.
Yes. Anyone willing to make it into standalone library is definitely welcomed. /Pavel
On Wed, 23 Jun 2004 18:58:20 +0200
"Pavel Vozenilek"
"Nat Goodspeed"
wrote From: Erik Thiele [mailto:erik@thiele-hydraulik.de]
now i can do:
void foo() { protassign<bool> foorunning_assigner(foorunning, true); dojobs(); dofoooo(); }
and that's all. is there one such thing in boost already???
[Nat] In the forthcoming Boost serialization library:
there's a state_saver template class that does what you're talking about:
http://www.rrsd.com/boost/libs/serialization/doc/state_saver.html
This seems useful enough to promote to a library more general than the serialization library.
Yes. Anyone willing to make it into standalone library is definitely welcomed.
well.... my file is "doxygen"ized. the open issues are the CATCHDESTRUCTOR macro i use to convert exceptions in destructor to warnings. this must be replaced by some boost conformant stuff. also i store reference to the object, therefore some of your fancy traitstuff must be used. the rest i think is easy. what steps are neccessary to put this into boost? actually i have no time at all :) but maybe i could do it anyway, since it should be easy. cya erik -- Erik Thiele Horst Thiele Maschinenbau-Hydraulische Geräte GmbH Im Kampfrad 2 - 74196 Neuenstadt Tel.: 07139/4801-19 Fax.: 07139/4801-29 email: erik@thiele-hydraulik.de Internet: http://www.thiele-hydraulik.de/
"Erik Thiele"
well.... my file is "doxygen"ized. the open issues are the CATCHDESTRUCTOR macro i use to convert exceptions in destructor to warnings. this must be replaced by some boost conformant stuff. also i store reference to the object, therefore some of your fancy traitstuff must be used. the rest i think is easy. what steps are neccessary to put this into boost?
Post the library into Boost Files section on yahoo - I'll take look. If its (more-less) complete then one needs to ask for review and wait in queue. /Pavel
participants (3)
-
Erik Thiele
-
Nat Goodspeed
-
Pavel Vozenilek