[Development] Using #pragma once
Lars Knoll
lars.knoll at qt.io
Sun Oct 7 10:56:47 CEST 2018
Hi,
Just a quick question: Does anybody have any good arguments against us starting to use #pragma once instead of header guards throughout our code base?
I’ve started using it implicitly when updating 3rd party code (the macro assembler) in qtdeclarative without any problems (so I’d supported by all our compilers). IMO #pragma once is both safer and nicer to use than classic header guards.
Cheers,
Lars
More information about the Development
mailing list