Boost logo

Boost :

From: ¿ÂÃÍ (k.meng_at_[hidden])
Date: 2002-11-12 20:40:27


Hi:

Sorry, it's my error, the compile error is because of call_method<>, and call_method<void> is OK!

   struct Base
    {
        virtual int f() = 0;
        virtual Base* clone() = 0;
        virtual void g() = 0;
    };

    struct BaseWrap : Base
    {
        BaseWrap(PyObject* self_)
            : self(self_) {}
        int f() { return call_method<int>(self, "f"); }
        file://void g() {call_method<>(self, "g"); }//compile error
        void g() {call_method<void>(self, "g"); }//ok
        Base* clone(){ return call_method<Base*>(self, "clone");}
        PyObject* self;
    };

                                                                kemeng



Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk