[Development] QTimer::setInterval() and <chrono>
Thiago Macieira
thiago.macieira at intel.com
Thu Dec 7 19:31:54 CET 2017
On Thursday, 7 December 2017 09:22:12 PST Christian Ehrlicher wrote:
> Am 07.12.2017 um 17:01 schrieb Thiago Macieira:
> > So you upgrade your compiler.
>
> No problem from my side :)
>
> > See also how no version of Visual Studio has __has_include, so the
> > functionality is disabled with Microsoft's compiler until they implement
> > the macro.
> >
> > This is a conscious decision.
>
> Then it's even more important to document that those functions are not
> available for compilers which do not support __has_include.
> Really hoped this was just a leftover from pre c++11 times :)
This is specifically a C++11 solution. The standing document that explains how
to detect if the implementation has the feature says we should use
__has_include. So we do.
See also QTBUG-62107.
PS: looks like VS 15.3 has __has_include. I haven't confirmed that.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Development
mailing list