Why isn't C/C++'s “#pragma once” an ISO standard?

前端 未结 9 1697
说谎
说谎 2020-11-28 11:29

I am currently working on a big project and maintaining all those include guards makes me crazy! Writing it by hand is frustrating waste of time. Although many editors can g

9条回答
  •  甜味超标
    2020-11-28 12:12

    IIRC, #pragma anything is not part of the language. And it shows up in practice, a lot.

    (edit:completely agree that the inclusion and linking system should have been more of a focus for the new standard as it is one of the most obvious weaknesses, in 'le this day and age' )

提交回复
热议问题