|
Boost : |
From: Reid Sweatman (reids_at_[hidden])
Date: 1999-07-27 16:12:15
Well, it's probably a dumb suggestion, but you could write quickie templates
to wrap the target class's CTOR and DTOR, and include your hooks in the
wrapper. There's probably a reason why that won't work, but I'm too short
on time right now to think much <g>. I envy you that class reunion.
> -----Original Message-----
> From: Andy Glew [mailto:glew_at_[hidden]]
> Sent: Saturday, July 24, 1999 7:44 PM
> To: boost_at_[hidden]
> Subject: [boost] Re: Libraries requested or under construction
>
>
> >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().
>
>
>
> --------------------------------------------------------------
> ----------
> GET $10 OFF ANY ORDER @ healthshop.com! No min. purchase req.
> Save on vitamins & supplements. Use coupon code: EGROUPS99
> at checkout. http://clickhere.egroups.com/click/463
>
>
> eGroups.com home: http://www.egroups.com/group/boost
> http://www.egroups.com - Simplifying group communications
>
>
>
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk