Make #pragma once standard in C++

0 have signed. Let’s get to 100!


#pragma once is quite commonly supported in many compilers nowadays, however, despite this wide support, it is still not a C++ standard.

Making #pragma once a C++ standard would allow the C++ community to compile their code faster, write less code to do the same as #ifndef and it reduces the chances of a name clash. The reduction of the chances of a name clash, is due to the fact that the programmer is no longer required to handle the macro of the file, as the compiler does this.

 



Today: Gregory is counting on you

Gregory Neale needs your help with “isocpp.org: Make pragma once standard in C++”. Join Gregory and 15 supporters today.