Files
ResInsight/Fwk/AppFwk/cafProjectDataModel/cafPdmCore/cafPdmBase.h
2020-06-19 08:00:01 +02:00

11 lines
338 B
C

#pragma once
// Brings in size_t and definition of NULL
#include <cstddef>
// Macro to disable the copy constructor and assignment operator
// Should be used in the private section of a class
#define PDM_DISABLE_COPY_AND_ASSIGN( CLASS_NAME ) \
CLASS_NAME( const CLASS_NAME& ); \
void operator=( const CLASS_NAME& )