possible? google fails me. i'l like to make an operator funtor that doesn't rely on a designator code
possible? google fails me. i'l like to make an operator funtor that doesn't rely on a designator code
What do you mean by "designator code" and why does it have to be global.
by designator code i mean chars containing the ascii representation of the operator.
global may be the wrong word - i mean operators for POD - int, float, etc. non-class-member operators.
So you don't want to call it "+"? What do you want to call it, then? Wouldn't it just then be a plain old function?
O_o
I don't understand.
Show us what you want to do--even if it doesn't work.
Soma
argh gotta walk the dogs. brb in like 60 mins...
Er. operators on primitive types aren't functions. Rather they are compiled to machine instructions. as such you can't have a pointer to them.
You can have a pointer to a function that adds two numbers however.
Does that help?
It is too clear and so it is hard to see.
A dunce once searched for fire with a lighted lantern.
Had he known what fire was,
He could have cooked his rice much sooner.
yes that answers my question thx.