Reputation: 41
Is operator overloading for classes and structs always resolved at compile-time?
Upvotes: 4
Views: 293
Reputation: 14423
Yes. Only dynamic type-specific behavior achievable in C++ is through virtual member functions.
Upvotes: 3
Reputation: 16656
Yes, always.
Upvotes: 7