Meh, I give it up. The lack of static_if makes any attempt to use preprocessor effectively futile.