c++ - Overloading operator = error -
im trying create stack im receiving errors overloading = operator. stack of type template. heres code
template <typename t> t& ::stack& operator =(const stack& other) { if (this == &other) homecoming *this; copy(other.stack1[0], other.stack1[other.size], stack1[0]); homecoming *this; }
any help appreciated. thanks
please seek below signature
template <typename t> stack<t>& stack<t>:: operator =(const stack<t>& other)
c++ templates stack
No comments:
Post a Comment