SUIF2: missing CloneAction constructor

Karl Eisenhofer karl@stage2i.com
Wed, 28 Jun 2000 17:53:17 -0700


In basesuif/suifcloning/cloner.h:

class CloneAction {
    public:
 CloneAction(const LString &the_type);
^^^^^ constructor declared but never defined

 virtual void object_enquiry(Object *,CloneStreamObjectInstance
*,PTR_TYPE ptr_type)=0;
        const LString & get_type() const;
    private:
        const LString type;
 };

In order to use this class, I had define the constructor in my local
file:

CloneAction::CloneAction(const LString &the_type) : type(the_type) {}

but it is preferable if the constructor is predefined in cloner.h.
The "^^^^^^" noted line above could be changed to

    CloneAction(const LString &the_type) : type(the_type) {}

and this problem would go away.

Thanks,

Karl