MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/1vt2aq3/c26_stdpolymorphic/p5pw2zl/?context=3
r/cpp • u/User_Deprecated • Aug 19 '26
44 comments sorted by
View all comments
Show parent comment
1
I don't agree with your take, but that's fine. imo it should just be defined to be
bool operator==(polymorphic& a, polymorphic& b) { bool has = a.is_valueless(); if(has != b.is_valueless()) return false; returb has && *a == *b; }
View all comments
Show parent comment
1
u/_Noreturn Aug 25 '26 edited Aug 25 '26
I don't agree with your take, but that's fine. imo it should just be defined to be