Re: Weird thing while trying to avoid pointers in C++
Originally Posted by high_flyer
Unless you define the vector as QVector<MyObject&> - then it indeed will take references.
I'm pretty sure you can't do that, since references in C++ have their "oddies" (like the reference is for all it's life bound to an object and it should be set at declaration)
Bookmarks