RE: vtable on stack

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux