//A comment
/*
A commented out area
*/
Commenting out section of code
Commenting out code and avoiding error: “/*” within comment [-Werror=comment]
This is one of those annoying compiler warnings that will be treated as an error if -Werror is set.
Bewst solution is to not use /* */ to comment out sections of code and comments, and instead use #if 0 #endif:
#if 0 //Disabling this section of code
//Everthing in here is ignored
#endif
USEFUL?
We benefit hugely from resources on the web so we decided we should try and give back some of our knowledge and resources to the community by opening up many of our company’s internal notes and libraries through resources like this. We hope you find it helpful.
Please feel free to comment if you can add help to this page or point out issues and solutions you have found, but please note that we do not provide support here. If you need help with a problem please use one of the many online forums.