Click here to Skip to main content
15,902,938 members
Please Sign up or sign in to vote.
1.20/5 (5 votes)
See more:
why is it that one cannot use the (++) operator on complex template
e.g answer++
Posted
Comments
CPallini 1-Aug-11 4:07am    
Could you please elaborate? What is 'complex template'?

 
Share this answer
 
If you are referring to a template implementing complex number arithmetic, the reason is that such an operator (with the meaning of adding the real constant 1) has very little use for complex numbers.

Anyway, nothing forbids to implement it.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900