On Wednesday, 24 March 2021 09:05:50 PDT Giuseppe D'Angelo via Interest wrote: > >> * I've got a square peg (a QList) and a round hole (an function I made > >> that takes a QSet), so I need conversions to call it. > > > > And what, exactly, is the solution here? Probably "ranges", but those > > aren't available yet. > > Not an easy answer, but maybe start not to have functions take/return > specific containers.
No, there is no answer. You have to choose a container. Unless you want to go the route of everything-in-the-library-is-inline, which makes your compilation times (and your Qt Creator completions, see other thread) take 10x longer. That goes against Qt library coding policy, therefore is not an option. So we have to choose one container. That's why we use QList for everything sequential, non-associative: it's (now!) usually more than good enough for almost all uses. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel DPG Cloud Engineering _______________________________________________ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest