I wonder why such a natural thing like static_if
did not manage to get into C++11? Some people object that using inheritance or template specialization we could achieve demanded results BUT:
Why don't we have a simple static_if
for simple situations when one doesn't want to bloat up the source code with all that?
I suppose the commitee was short of time to discuss this feature so they decide to delay it after C++11. Anyway proposal is here: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3329.pdf
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With