Elektrine lite

← Feed

@xnor@fed.xnor.in

2026-08-17 08:40 UTC

I just don't get it. Why do I have to declare an explicit comparison operator for a super simple struct if I use the struct in a std::set? https://godbolt.org/z/3YxKf8ePh Why oh why can't the compiler deduce the super simple operator by itself?

Replies (0)

No replies.