What are some lesser known usages of #pragma?

Posted by Xavier Ho on Stack Overflow See other posts from Stack Overflow or by Xavier Ho
Published on 2010-04-24T06:52:11Z Indexed on 2010/04/24 7:03 UTC
Read the original article Hit count: 235

Filed under:
|
|
|
|

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?

© Stack Overflow or respective owner

Related posts about c++

Related posts about pragma