private:
T * ptr_;
- void swap(copied_ptr &);
};
{
if (&other != this) {
copied_ptr temp(other);
- swap(temp);
+ std::swap(ptr_, temp.ptr_);
}
return *this;
}
return ptr_;
}
-
-template <typename T, typename Traits>
-void copied_ptr<T, Traits>::swap(copied_ptr & other)
-{
- std::swap( ptr_, other.ptr_ );
-}
-
} // namespace support
} // namespace lyx