[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


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


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.


Qt-creator mailing list
Qt-creator at qt-project.org

More information about the Qt-creator mailing list