Ray's playground

 

Item 12: Copy all parts of an object(Effective C++)

  • Copying functions should be sure to copy all of an object's data members and all of its base class parts.

  • Don't try to implement one of the copying functions in terms of the other. Instead, put common functionality in a third function that both call.

  • posted on 2010-01-04 22:01  Ray Z  阅读(244)  评论(0编辑  收藏  举报

    导航