[Development] Question about QCoreApplicationData::*_libpaths

Иван Комиссаров abbapoh at gmail.com
Thu Jan 7 15:05:37 CET 2016


Still, what about policy not to use std:: classes in Qt API?
Are optional inplementations compatible with each other like std::pair ot
not?

2016-01-06 21:21 GMT+03:00 Kevin Kofler <kevin.kofler at chello.at>:

> Marc Mutz wrote:
> > 1. We'd need to rename the copy, and how, without requiring template
> >    aliases, would we then use one or the other (if we don't rename, we'll
> >    run afoul of the ODR)
>
> Just use good old #define:
> #if HAVE_STD_OPTIONAL
> #define Q_OPTIONAL std::optional
> #elif HAVE_STD_EXPERIMENTAL_OPTIONAL
> #define Q_OPTIONAL std::experimental::optional
> #else
> #define Q_OPTIONAL QtPrivate::optional
> #endif
>
>         Kevin Kofler
>
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20160107/5fe72eba/attachment.html>


More information about the Development mailing list