diff options
author | Chris Wilson <chris+github@qwirx.com> | 2009-01-05 00:48:33 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2009-01-05 00:48:33 +0000 |
commit | fd7e746850372750efd42690aac25cbf32d9b5b4 (patch) | |
tree | 4e72d0c1785bd81322fd06c8d04433481021b065 | |
parent | 1c5c91f74c636145d02f4bc91b852d669685744e (diff) |
Remove definitions of unwanted copy constructor and assignment operator,
to avoid accidentally calling them.
-rw-r--r-- | lib/common/IOStream.cpp | 13 | ||||
-rw-r--r-- | lib/common/IOStream.h | 8 |
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, |