5
wowotek
5y

#pragma once

is not standard ? really ?

Comments
  • 5
    really, only include guards
  • 8
    Yeah you give them pragma once, soon theyll ask for pragma twice.
  • 5
    Pragmas are MEANT to do compiler specific stuff, so what's the issue?
  • 0
    @Fast-Nop not an issue, i use it sometimes, and i thought it was standardized
  • 0
    Seriously though, header guards are incredibly cumbersome in 2019, and I can't think of a case when you'd not want to use them

    So eh, they really should come up with some standard directive for this.
  • 0
    I guess, CLion includes header guards automatically into new class files so I never needed to use pragma once, not a big deal I guess
Add Comment