I don't get it. That should be a static assert, not static if. Why would you even add into your build order a module that will never be actually compiled?

If anything, static assert will prevent dead imports while such "static return" will silently swallow them.

How would you propose handling module constructors and module-scope variables in presence of such return?

Reply via email to