-
Make sure operator= is well-behaved when an object is assigned to itself. Techniques include comparing addresses of source and target objects, careful statement ordering, and copy-and-swap.
-
Make sure that any function operating on more than one object behaves correctly if two or more of the objects are the same.
| 只有注冊用戶登錄后才能發(fā)表評論。 | ||
|
||
網(wǎng)站導航:
博客園
IT新聞
BlogJava
博問
Chat2DB
管理
|
||
|
|

