I've got a question : Is it good to use :
Since if you include the header two times you don't get an error. But it seems that with this kind of protection you can include header only once, and every time you try to do it again the compiler ignores it, which prevents tracking bugs.Code:#indef SOMETHING_H #deinfe SOMEHING_H ... put your class here ... #endif
Isn't it better to include the headers properly without using that above, and if you make a mistake the compiler warns you and you correct it.
So do you use that above. To me it seems stupid ? Can you explain me why i'm wrong ?