Hello
I want to implement a class and say for each of the method I add code for error checking (bounds,correct args etc..) However I do want the provide user with an option to disable error checking completely and when the user chooses this option the code for error checking shouldn't be executed. I could only think of conditional compilation adding a #ifdefs etc..
What would be the best way to achieve this ?
Just to clarify my case more:-
I would want something similar to
ios_base::sync_with_stdio(0);

Any suggestions would be really appreciated.
Thank you.