On 06/29/2010 01:46 PM, Pavel Sanda wrote:
Andre Poenitz wrote:
One could argue that it allows the kind of code that's conceptionally
closest to the model Rob has in mind to compile out-of-the-box, but
does qvector provide something special compared to std::vector?

QVector doesn't require a default constructor.

Two solution here to stay with vector:
1) give TocItem a default constructor
2) use vector<TocItem *> instead.


its kind of strange to sudenly pull qt into the core just for qvector
when std::vector is used in all other places.

Right. But I wouldn't say so for signal and slots.

Abdel.

Reply via email to