DEV Community

Discussion on: Pitch me on C++

Collapse
 
rfog profile image
rf og

"You must use the ugly #ifdef INCLUDED hack."

For this you have the non-standard "#pragma once", supported for most of modern compilers.

Collapse
 
pauljlucas profile image
Paul J. Lucas

And really modern compilers don't even need that.

Collapse
 
aregtech profile image
Artak Avetyan

If you develop / deliver a library, you'd still better use old and nice #ifndef.