I doubt static_assert would do anything runtime based... so I'm surprised typeid even works in there.

In any case, commented out code should just go away or at least have an explanation of why it's commented out and why it might make sense to uncomment it.