|
Boost : |
Subject: Re: [boost] request for interest in a garbage collection library
From: jbosboom_at_[hidden]
Date: 2009-04-21 13:45:06
> What if I do something like
>
> Foo foo;
> gc_ptr<Foo> bar = &foo;
>
> ?
I'd expect it to be the same as
Foo* foo() {
Foo foo;
return &foo;
}
Don't expect a GC to save you from that one; you asked for stack duration
when you declared the Foo object.
--Jeffrey Bosboom
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk