[Development] QHash iteration vs std::unordered_map

Olivier Goffart olivier at woboq.com
Tue Apr 18 10:52:47 CEST 2017


On Montag, 17. April 2017 18:48:26 CEST Marc Mutz wrote:
> On Monday 17 April 2017 18:08:20 Thiago Macieira wrote:
> > Em segunda-feira, 17 de abril de 2017, às 00:30:23 PDT, Marc Mutz 
escreveu:
> > > The problem with QT_STRICT_ITERATORS is _not_ that they are changing
> > > begin() and end(),
> > 
> > Actually, it was. You can't use QT_STRICT_ITERATORS in one TU and not in
> > other, regardless of exporting or not.
> 
> Why?

ODR violation is an undefined behaviour.
(Technically, this is also the case across library boundaries)




More information about the Development mailing list