Sorry to ask this here, but there isn't really any "other languages" board here. Well, the thing is, I'm adapting a C++ code to BlitzMAX. I don't know much of C++, so I'm having some doubts.
Body is a struct defined in another header. I can't find a custom < operator defined anywhere in the code, so I'm wondering how exactly the "b1 < b2" part works. What exactly is it comparing? The variable adresses?
Thanks in advance.
struct ArbiterKey { ArbiterKey(Body* b1, Body* b2) { if (b1 < b2) { body1 = b1; body2 = b2; } else { body1 = b2; body2 = b1; } } Body* body1; Body* body2; };
Body is a struct defined in another header. I can't find a custom < operator defined anywhere in the code, so I'm wondering how exactly the "b1 < b2" part works. What exactly is it comparing? The variable adresses?
Thanks in advance.