https://bugs.kde.org/show_bug.cgi?id=356699

--- Comment #3 from Sergio Martins <smart...@kde.org> ---
you can use .at(0), which doesn't detach:

#include <QVector>
#include <QDebug>

struct T
{
    void nonConst()
    {
        qDebug() << "T::nonConst";
    }
};

int main()
{
    QVector<T*> vec = {new T()};
    vec.at(0)->nonConst();

    return 0;
}

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to