All pastes #266399 Raw Edit

Anonymous

public cpp v1 · immutable
·published 2006-12-04 02:41 UTC
rendered paste body
class Zsak{    public:        Zsak();        ~Zsak();        void Add( int x );        friend Zsak operator>>( const int a, Zsak b ) { b.Add( a ); return b; }        friend Zsak operator+( const Zsak a, const Zsak b )        {            Zsak ret;            list<int>::iterator i;            a.zs.push_back(5);            return ret;        }    private:        list<int> zs;};