[Development] Using #pragma once

Sérgio Martins sergio.martins at kdab.com
Sun Oct 7 15:18:55 CEST 2018


On 2018-10-07 09:56, Lars Knoll wrote:
> 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?

Hi Lars,


This was already discussed back in January: 
https://lists.qt-project.org/pipermail/development/2018-January/031966.html

The conclusion was to keep using header guards.


Regards,
-- 
Sérgio Martins | sergio.martins at kdab.com | Senior Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel: Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - The Qt, C++ and OpenGL Experts



More information about the Development mailing list