3 ms·
> (unless the standard says compilers should ignore the `#pragma` if they don't understand it, but I confess haven't checked). It does (Section 15.9 [cpp.pragm
by aw1621107 4y ago
> (unless the standard says compilers should ignore the `#pragma` if they don't understand it, but I confess haven't checked).
It does (Section 15.9 [cpp.pragma]):
> Any pragma that is not recognized by the implementation is ignored.
However, Clang has the -Wunknown-pragmas warning which will fire on pragmas it doesn't recognize, so you'll probably want to do what gavinhoward does and guard non-Clang pragmas with compiler-specific #ifdefs.