vtable on stack
John (Eljay) Love-Jensen
eljay@adobe.com
Tue Feb 2 13:53:00 GMT 2010
Hi Frank,
> You mentioned a vector of references. As far as I [know] this is not possible.
You are correct, a std::vector of C++ references is not possible.
You would have to use a std::vector of pointers, or a std::vector of smart pointers. (Sometimes smart pointers are called references, just to muddy the water.)
For smart pointers, I recommend Boost's smart pointers:
http://www.boost.org/doc/libs/1_41_0/libs/smart_ptr/smart_ptr.htm
Sincerely,
--Eljay
More information about the Gcc-help
mailing list