summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2009-01-05 00:48:33 +0000
committerChris Wilson <chris+github@qwirx.com>2009-01-05 00:48:33 +0000
commitfd7e746850372750efd42690aac25cbf32d9b5b4 (patch)
tree4e72d0c1785bd81322fd06c8d04433481021b065
parent1c5c91f74c636145d02f4bc91b852d669685744e (diff)
Remove definitions of unwanted copy constructor and assignment operator,
to avoid accidentally calling them.
-rw-r--r--lib/common/IOStream.cpp13
-rw-r--r--lib/common/IOStream.h8
2 files changed, 6 insertions, 15 deletions
diff --git a/lib/common/IOStream.cpp b/lib/common/IOStream.cpp
index 2bed3814..fc9d0bc3 100644
--- a/lib/common/IOStream.cpp
+++ b/lib/common/IOStream.cpp
@@ -29,19 +29,6 @@ IOStream::IOStream()
// --------------------------------------------------------------------------
//
// Function
-// Name: IOStream::IOStream(const IOStream &)
-// Purpose: Copy constructor (exceptions)
-// Created: 2003/07/31
-//
-// --------------------------------------------------------------------------
-IOStream::IOStream(const IOStream &rToCopy)
-{
- THROW_EXCEPTION(CommonException, NotSupported)
-}
-
-// --------------------------------------------------------------------------
-//
-// Function
// Name: IOStream::~IOStream()
// Purpose: Destructor
// Created: 2003/07/31
diff --git a/lib/common/IOStream.h b/lib/common/IOStream.h
index daf1ba50..0b1cedd3 100644
--- a/lib/common/IOStream.h
+++ b/lib/common/IOStream.h
@@ -22,9 +22,13 @@ class IOStream
{
public:
IOStream();
- IOStream(const IOStream &rToCopy);
virtual ~IOStream();
-
+
+private:
+ IOStream(const IOStream &rToCopy); /* forbidden */
+ IOStream& operator=(const IOStream &rToCopy); /* forbidden */
+
+public:
enum
{
TimeOutInfinite = -1,