You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return x1 < x2 ? x1 : x2 generates compile error because operator? required that both t1 and t2 need to be convertible to the same type. But only safe version of operator? would do this. Solution implement safe version of operator?
The text was updated successfully, but these errors were encountered:
Hmmm have to think about that. x2 and x1 definitely have to be convertible to the same type. I guess you're right, I need to define/implement operator?(...)
return x1 < x2 ? x1 : x2 generates compile error because operator? required that both t1 and t2 need to be convertible to the same type. But only safe version of operator? would do this. Solution implement safe version of operator?
The text was updated successfully, but these errors were encountered: