T& T::operator=(const T &other){ if(this != &other) { this->~T(); // 有害! new (this) T(other); // 有害! } return *this;}
posted on 2007-10-23 20:49 Robin Chow 阅读(55) 评论(0) 编辑 收藏 引用
Powered by: C++博客 Copyright © Robin Chow