![]() |
overloading operator *
Hello all,
can anyone tell me how can i make the following code to work fine in MVS and GNU compiler? This code will work only for MVS. GNU compiler will generate a building error. Code:
#include <iostream> |
Re: overloading operator *
What error do you get?
|
Re: overloading operator *
GNU compiler will produce an error because there is no *= that matches the overloaded operators in std::vector class.
|
Re: overloading operator *
OK, so instead of A*=B, use A=A*B
|
| All times are GMT +5.5. The time now is 06:34. |