From fd7e746850372750efd42690aac25cbf32d9b5b4 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 5 Jan 2009 00:48:33 +0000 Subject: Remove definitions of unwanted copy constructor and assignment operator, to avoid accidentally calling them. --- lib/common/IOStream.cpp | 13 ------------- 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 @@ -26,19 +26,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 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, -- cgit v1.2.3