For example I have a function call in some code I want to be able to enable/disable as I like.
Normally I could just use an if, but then it would check each time if the function can be ran, which I don't want. I simply want the code to never do that check.
ifdef blocks can be messy and quite dirty, they pile up and make code hard to read.
Can't I solve this with some sort of template ? I know I can make multiple lambdas to build each version of the possible function call I'd want.
Is this what a static if means ? Because in my mind, what I want to do is a self modifying code, which I don't know if it's a good idea or possible at all.