jeudi 29 novembre 2018

Cpp Core Guidelines recommend against #pragma once?

Based on other answers on SO such as #pragma once vs include guards? as well as what I've seen in some open source and other projects, #pragma once seems to be standard practice. Yet, the CPP Core Guidelines here recommend against it(the note seems pretty strong against #pragma once).

As long as I'm using C++11 or above with an up-to date compiler do I need to worry about this? In which situations, should I be wary of using them?

Aucun commentaire:

Enregistrer un commentaire