Blame include/CopyOwner.cxx

Packit 8a864e
// Copyright (c) 1994 James Clark
Packit 8a864e
// See the file COPYING for copying permission.
Packit 8a864e
Packit 8a864e
#ifndef CopyOwner_DEF_INCLUDED
Packit 8a864e
#define CopyOwner_DEF_INCLUDED 1
Packit 8a864e
Packit 8a864e
#ifdef SP_NAMESPACE
Packit 8a864e
namespace SP_NAMESPACE {
Packit 8a864e
#endif
Packit 8a864e
Packit 8a864e
template<class T>
Packit 8a864e
CopyOwner<T>::CopyOwner(const CopyOwner<T> &o)
Packit 8a864e
: Owner<T>(o.pointer() ? o.pointer()->copy() : 0)
Packit 8a864e
{
Packit 8a864e
}
Packit 8a864e
 
Packit 8a864e
template<class T>
Packit 8a864e
void CopyOwner<T>::operator=(const CopyOwner<T> &o)
Packit 8a864e
{
Packit 8a864e
  Owner<T>::operator=(o.pointer() ? o.pointer()->copy() : 0);
Packit 8a864e
}
Packit 8a864e
Packit 8a864e
#ifdef SP_NAMESPACE
Packit 8a864e
}
Packit 8a864e
#endif
Packit 8a864e
Packit 8a864e
#endif /* not CopyOwner_DEF_INCLUDED */