Boost logo

Boost :

From: Andy Glew (glew_at_[hidden])
Date: 1999-07-24 21:44:28


>The sort of pointers you're asking for are exactly the kind I was looking
>for when I came here in the first place. That suggestion I just posted
>about directed graph templates was the source for the request; I want to
>have dynamic FSM's, and that would require just the kind of ownership and
>destruction semantics you describe.

Well, what usually happens happened:

I get ashamed / annoyed.

So, this weekend I hacked up a quick version on my laptop
while at a campground for my wife's highschool class reunion.

Give me a chance to download it and clean it up a bit,
and I'll pass it on to you; I'll then read the BOOST code standards,
and see about cleaning it up for submission.

I'm especially motivated - I need live_ptrs in the project I should have finished
last week.

---
Before BOOSTing them, I'd like to find a non-intrusive way of doing this. 
I can do it standardly in Borland C++ --- the only C++ manuals I had this weekend.
There may be some sort of pre and post destructor hook.
But I think that this shows a more important issue: there is no portable way
of wrapperizing functions that do not have hooks planted a priori.
I.e. what I want to do is take an arbitrary existing library function foo(),
write my own library function foo() that intercepts all existing calls to foo(),
which typically does some work, and then may optionally call the original
function foo().

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk