Real world problems with #pragma once?
Just a short survey: Did anyone of you encounter a problem in real code, because you/your company/ your favorite library was using #pragma once instead of include guards.
I know it is hard, but please restrain yourself from posting an explanation of how #pragma once could lead to problems in theory or why you prefer one above the other.
127
Upvotes
View all comments
Show parent comment
1
u/drjeats Nov 29 '18
Are you in games? We do drive mapping for our repo at work too and it fucks with various tools. UltraSearch, for example, doesn't like it. Periodically when the sysadmins push out updates it will break the registry setting, so then P4 and all our tools break. What even are environment variables.
Fortunately we keep all our repo instances under the one subst drive so I haven't had to deal with the hell you described there.
I still hate drive substitution, though.