[Qt-creator] Use #pragma once as default instead of header guards

Hartmann Thomas Thomas.Hartmann at theqtcompany.com
Wed Jan 13 17:07:51 CET 2016


Hi,

the internet claims it is not in the standard but widely supported.

(https://msdn.microsoft.com/en-us/library/4141z1cx.aspx)
(http://stackoverflow.com/questions/23696115/is-pragma-once-part-of-the-c11-standard)

Kind Regards,
Thomas Hartmann

________________________________________
From: Qt-creator <qt-creator-bounces at qt-project.org> on behalf of Joerg Bornemann <joerg.bornemann at theqtcompany.com>
Sent: Wednesday, January 13, 2016 4:52 PM
To: Coda Highland
Cc: qt-creator at qt-project.org
Subject: Re: [Qt-creator] Use #pragma once as default instead of header guards

On 13-Jan-16 16:43, Coda Highland wrote:

> #pragma once isn't non-standard. It's defined by the C++11
> specification and a compliant compiler MUST support it.

Can you show me where this is defined?
AFAICT it is widely supported, but not part of the standard.


Cheers,

Joerg
_______________________________________________
Qt-creator mailing list
Qt-creator at qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


More information about the Qt-creator mailing list