| |
| |
operator+ overloading problem - GameDev.Net Discussion Forums |
 | | Posted - 7/21/2004 8:58:04 AM operator+ has to create a copy somewhere, otherwise it would be no different to operator+=, creating a copy in the parameter seems like as good a place as any to create it. |
 | | operator+ has to create a copy somewhere, otherwise it would be no different to operator+=, creating a copy in the parameter seems like as good a place as any to create it. |
 | | The code is pretty hard to follow, it looks like you are trying to implement a sizeable array of some kind, std::vector already exists for this purpose, would be better off using that, and you could forget about the memory worries you are having. |
| www.gamedev.net /community/forums/topic.asp?topic_id=258512&whichpage=1& (1511 words) |
|