SUIF2: missing CloneAction constructor

David Heine dlheine@carpathia.stanford.edu
Thu, 29 Jun 2000 01:05:49 -0700


On Wed, Jun 28, 2000 at 05:53:17PM -0700, Karl Eisenhofer wrote:
> 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.
This change was noted by the machsuif team will be in the upcoming release.
(RSN).

-David