From: Oliver.Kowalke_at_[hidden]
Date: 2006-05-02 09:41:50


        Hello,
        how can I define a function<> object which returns a value of
the same type:

        // doesn't work with gcc-4.1

        class X;

        typedef function< X() > X;

        X x1 = bind(...);
        X x2 = x1();

        Regards,
        Oliver