mirror of
https://github.com/pocoproject/poco.git
synced 2025-05-03 15:58:23 +02:00
20 lines
387 B
C
20 lines
387 B
C
//
|
|
// Guards.h
|
|
//
|
|
// $Id: //poco/1.4/CppUnit/include/CppUnit/Guards.h#1 $
|
|
//
|
|
|
|
|
|
#ifndef Poco_CppUnit_Guards_INCLUDED
|
|
#define Poco_CppUnit_Guards_INCLUDED
|
|
|
|
|
|
// Prevent copy construction and assignment for a class
|
|
#define REFERENCEOBJECT(className) \
|
|
private: \
|
|
className(const className& other); \
|
|
className& operator = (const className& other);
|
|
|
|
|
|
#endif // Poco_CppUnit_Guards_INCLUDED
|