//
// comstr6.cpp - a "common" str type for containable str
// objects
//
#include "comstr6.h"
common &comstr::operator=(const common &c)
{
e = ((const comstr &)c).e;
return *this;
}
common *comstr::dup() const
{
return new comstr(*this);
}
size_t comstr::size() const
{
return sizeof(comstr);
}
ostream &comstr::write(ostream &s) const
{
return s << e;
}
istream &comstr::read(istream &s)
{
return s >> e;
}
comstr::~comstr() { }
comstr::operator str &()
{
return e;
}
// End of File