|
Boost Users : |
Subject: [Boost-users] shared_ptr<T> callback
From: Vjekoslav Brajkovic (balkan_at_[hidden])
Date: 2009-09-14 21:41:06
Hello! :)
I'm writing a write-through cache unit which returns const
shared_ptr<T>. After the data has been modified and once share_ptr goes
out of scope, I would like the shared_ptr destructor to call a handler
which would commit the modified value to some other location -- a DHT
for instance. Is there a way to supply a callback function to
shared_ptr destructor? Any help would be greatly appreciated.
Please let me know if the question is too ambiguous.
Thanks!
V
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net