Re: [Interest] can't dump QStringList with qDebug()

2023-03-07 Thread Thiago Macieira
On Tuesday, 7 March 2023 21:20:02 PST Hamish Moffatt via Interest wrote: > I confirm that my test code compiles in 6.5.0-beta3. And I can reproduce the error with GCC 13 if I check out the 6.4.2 headers. GCC 13 says: note: candidate: ‘template QDebugIfHasDebugStreamContainer, T> operator<<(QDeb

Re: [Interest] can't dump QStringList with qDebug()

2023-03-07 Thread Hamish Moffatt via Interest
On 8/3/23 14:45, Thiago Macieira wrote: On Tuesday, 7 March 2023 17:21:11 PST Hamish Moffatt via Interest wrote: I said gcc 10 earlier, but I meant to say clang 11. But I also see it in clang 14, and in VS 2019 (17.5.1 - latest). Cannot reproduce with those files with GCC 11, 12, 13 or Clang 15

Re: [Interest] can't dump QStringList with qDebug()

2023-03-07 Thread Thiago Macieira
On Tuesday, 7 March 2023 17:21:11 PST Hamish Moffatt via Interest wrote: > I said gcc 10 earlier, but I meant to say clang 11. But I also see it in > clang 14, and in VS 2019 (17.5.1 - latest). Cannot reproduce with those files with GCC 11, 12, 13 or Clang 15, all with Qt 6.6. Looking at the gen

Re: [Interest] can't dump QStringList with qDebug()

2023-03-07 Thread Hamish Moffatt via Interest
On 8/3/23 04:15, Thiago Macieira wrote: On Monday, 6 March 2023 22:15:01 PST Hamish Moffatt via Interest wrote: ../../../../Qt6.4.2/6.4.2/gcc_64/include/QtCore/qdebug.h:217:53: note: candidate template ignored: requirement 'std::conjunction_v, QString>, QTypeTraits::has_ostream_operator>>' was n

Re: [Interest] can't dump QStringList with qDebug()

2023-03-07 Thread Thiago Macieira
On Monday, 6 March 2023 22:15:01 PST Hamish Moffatt via Interest wrote: > ../../../../Qt6.4.2/6.4.2/gcc_64/include/QtCore/qdebug.h:217:53: note: > candidate template ignored: requirement > 'std::conjunction_v, > QString>, QTypeTraits::has_ostream_operator>>' was > not satisfied [with T = QString]

Re: [Interest] can't dump QStringList with qDebug()

2023-03-07 Thread Dmitriy Purgin
Hi, I'm sure you have already tried it, but just a wild guess: do you have #include in this .cpp file? Cheers Dmitriy On Tue, Mar 7, 2023 at 11:04 AM Hamish Moffatt via Interest < interest@qt-project.org> wrote: > On 7/3/23 20:11, Kai Köhne wrote: > > Hi, > > > > This looks like a compiler iss

Re: [Interest] can't dump QStringList with qDebug()

2023-03-07 Thread Hamish Moffatt via Interest
On 7/3/23 20:11, Kai Köhne wrote: Hi, This looks like a compiler issue to me. const auto connections = QSqlDatabase::connectionNames(); qDebug() << "Closing open connections:" << connections; claiming that ../../../src/server/server_database.cpp:691:45: error: invalid operands to bin

Re: [Interest] can't dump QStringList with qDebug()

2023-03-07 Thread Kai Köhne via Interest
Hi, This looks like a compiler issue to me. > const auto connections = QSqlDatabase::connectionNames(); > qDebug() << "Closing open connections:" << connections; > > claiming that > ../../../src/server/server_database.cpp:691:45: error: invalid operands to > binary expression ('QDebug' an

[Interest] can't dump QStringList with qDebug()

2023-03-06 Thread Hamish Moffatt via Interest
I'm porting my code to Qt6 (6.4.2) (from 5.15) and ran into this mysterious problem; this code doesn't compile:     const auto connections = QSqlDatabase::connectionNames();     qDebug() << "Closing open connections:" << connections; claiming that ../../../src/server/server_database.cpp:691:4