summaryrefslogtreecommitdiff
path: root/testshl2/inc/testshl/nocopy.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'testshl2/inc/testshl/nocopy.hxx')
-rw-r--r--testshl2/inc/testshl/nocopy.hxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/testshl2/inc/testshl/nocopy.hxx b/testshl2/inc/testshl/nocopy.hxx
new file mode 100644
index 000000000000..660bb1892e46
--- /dev/null
+++ b/testshl2/inc/testshl/nocopy.hxx
@@ -0,0 +1,13 @@
+#ifndef NOCOPY_HXX
+#define NOCOPY_HXX
+
+// prevent illegal copies
+class NOCOPY
+{
+ NOCOPY(NOCOPY const&);
+ NOCOPY& operator=(NOCOPY const&);
+public:
+ NOCOPY(){}
+};
+
+#endif