Boost logo

Boost Users :

Subject: [Boost-users] Stack objects and polymorphic access
From: asif saeed (asif.lse2_at_[hidden])
Date: 2012-04-18 03:02:11


Hi,

I want to maintain stack semantics in my application and avoid heap. For
very few requirements, I have to write polymorphic code but I still want to
create objects on stack and want to assign their addresses to some abstract
base class for polymorphic access. So, all stack variables will be
destroyed at the end of their scope and, yet, I'll get polymorphic access.
However, functions creating/returning concrete objects have concrete class
types. Can boost help me here?

Best regards, Asif



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