Re: [Development] std::format support for Qt string types

2024-06-07 Thread Thiago Macieira
On Friday 7 June 2024 08:40:33 GMT-7 Ivan Solovev via Development wrote: > IIUC, the problem of extra allocations is covered by the transcoding > iterators and views in the paper that was linked by Giuseppe. Yes and no. That appears to transfer the responsibility of transcoding to the formatter,

Re: [Development] std::format support for Qt string types

2024-06-07 Thread Ivan Solovev via Development
> Tomorrow, who knows -- thus my concern that we need to be aligned with > upstream, or we risk divergence. Cf. for example this approach: > >> https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p2728r6.html#add-utf_view-specialization-of-formatter Thanks for the link. If the paper gets

Re: [Development] std::format support for Qt string types

2024-06-07 Thread Thiago Macieira
On Friday 7 June 2024 01:53:55 GMT-7 Ivan Solovev via Development wrote: > Note that currently the standard does not allow to mix char and wide char > strings, so something like this will not work: > > std::wstring wstr = ~~~; > std::format("{}", wstr); // ERROR! > > That would mean the

Re: [Development] HEADS-UP: Qt 6.8 API change review

2024-06-07 Thread Volker Hilsheimer via Development
> > On 4 Jun 2024, at 09:29, Jani Heikkinen via Development > wrote: > > Hi! > Qt 6.8 API Change Review is started, see > https://bugreports.qt.io/browse/QTBUG-125859 > generated diffs are here: > • https://codereview.qt-project.org/q/topic:api-change-review-6.8 > •

Re: [Development] std::format support for Qt string types

2024-06-07 Thread Giuseppe D'Angelo via Development
On 07/06/2024 10:53, Ivan Solovev via Development wrote: Hi > I think we should conceptually separate formatting from printing on a > terminal. std::format isn't /_just_/ for printing on terminals I agree. But the same question about encoding to be used is still valid here. > What do you

Re: [Development] std::format support for Qt string types

2024-06-07 Thread Edward Welbourne via Development
Peppe had said: >> I'm not following this. If I do >> >> std::format("{} {}", utf8string, latin1string) >> >> what am I supposed to get out? A string which is a mix of two different >> encodings? I don't think that's ever possibly wanted. Ivan Solovev (7 June 2024 10:53) replied: > Yes, that's

Re: [Development] std::format support for Qt string types

2024-06-07 Thread Ivan Solovev via Development
Hi > I think we should conceptually separate formatting from printing on a > terminal. std::format isn't _just_ for printing on terminals I agree. But the same question about encoding to be used is still valid here. > What do you mean by "readable" here? I was mostly thinking about "readable

[Development] [Announce] Qt Creator 13.0.2 released

2024-06-07 Thread List for announcements regarding Qt releases and development via Announce via Development
We are happy to announce the release of Qt Creator 13.0.2! https://www.qt.io/blog/qt-creator-13.0.2-released -- Eike Ziller Principal Software Engineer The Qt Company GmbH Erich-Thilo-Str. 10 12489 Berlin, Germany eike.zil...@qt.io https://qt.io Geschäftsführer: Mika Pälsi, Juha Varelius,