hi,:lol:
I have added a special hardware to my cpu and now I want to overload * for double type.
usually [ double operator*(double, double) ] does not work because double is a predefined system type.
changing all of code manually is not a good way for me so I want to find an automatic way.
first solution I tried was to define a class with one double variable inside. then overload * for that class, but it is not good because it has a lot of timing overhead , moreover I should carefully change all of my code to replace double with new type.
is there any way to overload * operator for type of Double? can macros help me ?
I have added a special hardware to my cpu and now I want to overload * for double type.
usually [ double operator*(double, double) ] does not work because double is a predefined system type.
changing all of code manually is not a good way for me so I want to find an automatic way.
first solution I tried was to define a class with one double variable inside. then overload * for that class, but it is not good because it has a lot of timing overhead , moreover I should carefully change all of my code to replace double with new type.
is there any way to overload * operator for type of Double? can macros help me ?