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