Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Sharlin
on Feb 2, 2015
|
parent
|
context
|
favorite
| on:
C++ named operators
* is a better choice if you need something arithmetic-like, for instance
vector3 a, b; float f = a *dot* b; vector3 c = a *cross* c;
nikbackm
on Feb 2, 2015
[–]
Don't you need to overload two different operators to implement these named operators though?
krotton
on Feb 2, 2015
|
parent
[–]
No, they could equally well be two different overloads of a single operator.
Consider applying for YC's Summer 2025 batch! Applications are open till May 13
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: