either.hh: use static_assert instead of enable_if