Stack objects and polymorphic access
18 Apr
2012
18 Apr
'12
7:02 a.m.
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
4593
Age (days ago)
4593
Last active (days ago)
0 comments
1 participants
participants (1)
-
asif saeed