diff --git a/src/pv/pvData.h b/src/pv/pvData.h index 1106354..748970d 100644 --- a/src/pv/pvData.h +++ b/src/pv/pvData.h @@ -260,6 +260,7 @@ private: PostHandlerPtr postHandler; friend class PVDataCreate; friend class PVStructure; + EPICS_NOT_COPYABLE(PVField) }; epicsShareExtern std::ostream& operator<<(std::ostream& o, const PVField& f); diff --git a/src/pv/pvIntrospect.h b/src/pv/pvIntrospect.h index a656129..b362742 100644 --- a/src/pv/pvIntrospect.h +++ b/src/pv/pvIntrospect.h @@ -354,8 +354,8 @@ private: friend class StandardField; friend class BasePVStructureArray; friend class FieldCreate; - struct Deleter{void operator()(Field *p){delete p;}}; + EPICS_NOT_COPYABLE(Field) }; epicsShareExtern std::ostream& operator<<(std::ostream& o, const Field& field); @@ -743,6 +743,7 @@ private: friend class FieldCreate; friend class Union; + EPICS_NOT_COPYABLE(Structure) }; /**