[Development] Views in APIs
Ville Voutilainen
ville.voutilainen at gmail.com
Wed May 13 11:53:56 CEST 2020
On Wed, 13 May 2020 at 12:46, Marc Mutz via Development
<development at qt-project.org> wrote:
> In the not so hypothetical case that Qt is used to visualize results of
> some business calculations, chances are that thrid-party libraries will
> use std::string or std::u16string, and not QString, requiring the use of
> QString::fromStdString() to pass these to a QString API. Had the API
> taken QStringView, no extra code would have been necessary.
Wait, what? How can QStringView view a std::string?
More information about the Development
mailing list