Anonymous
Not applicable
Jan 04, 2017
11:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 04, 2017
11:06 AM
Hi. I'd like to use "#pragma once" in my .h files instead of the old fashioned #ifndef __FOO.H include guards,
It seems to work, but I get the warning symbol and the complaint "#pragma once in main file" in the left margin of the editor, although there are no actually compiler warnings.
Anyone know if this is OK to use, and if so, how to get rid of the warning in the editor?
Thanks!
Solved! Go to Solution.
1 Solution
Jan 04, 2017
09:51 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 04, 2017
09:51 PM
Hello,
Since there is no compiler warning it will not effect the functioning of application.
6 Replies