[Development] RFC: Proposal for a semi-radical change in Qt APIs taking strings

Thiago Macieira thiago.macieira at intel.com
Thu Oct 15 06:05:34 CEST 2015


On Thursday 15 October 2015 02:22:50 Marc Mutz wrote:
> On Thursday 15 October 2015 00:27:14 Thiago Macieira wrote:
> > Way too much code would break if we did that because we allow people
> > access
> > to  the data pointer in QString and to iterate directly
> > (std::{,w,u16}string don't allow that, which makes parsing them actually a
> > lot more cumbersome).
> 
> Just chiming in to say: It does:
> http://en.cppreference.com/w/cpp/string/basic_string/data

Ah, right. The mutable pointer is the one missing...
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list