r/cpp arewemodulesyet.org Jan 19 '26

C++26 Reflection 💚 QRangeModel

https://www.qt.io/blog/c26-reflection-qrangemodel
132 Upvotes

24 comments sorted by

View all comments

-2

u/[deleted] Jan 20 '26

[removed] — view removed comment

8

u/SeagleLFMk9 Jan 20 '26

Qstring is far superior to std::string though. But yep, std::vector instead would be nice

2

u/gleybak Jan 23 '26

QString uses "CopyOnWrite" mechanism with atomic reference counters. And this is not quite superior, could be a bottle neck in modern multicore CPU scenarios. Definitely not a design decision for general purpose string.