What code have you written with #pragma you found useful?
- by Xavier Ho
I've never understood the need of #pragma once when #ifndef #define #endif always works.
I've seen the usage of #pragma comment to link with other files , but setting up the compiler settings was easier with an IDE.
What are some other usages of #pragma that is useful, but not widely known?
Edit:
I'm not just after a list of #pragma directives. Perhaps I should rephrase this question a bit more:
What code have you written with #pragma you found useful?