23 Jul
2007
23 Jul
'07
7:37 p.m.
Eric Niebler wrote:
class vec { public: vec(sv& v = global) : v_(v) {} typedef sv::iterator iterator; typedef sv::iterator const_iterator; typedef sv::const_iterator const_iterator;
whoops, delete this line ---^^^
iterator begin() const { return v_.begin(); } iterator end() const { return v_.end(); } void push_back(const string& s) const { v_.push_back(s); } private: sv& v_; };
-- Eric Niebler Boost Consulting www.boost-consulting.com The Astoria Seminar ==> http://www.astoriaseminar.com