Changeset 2439


Ignore:
Timestamp:
05/01/2009 00:48:33 (3 years ago)
Author:
chris
Message:

Remove definitions of unwanted copy constructor and assignment operator,
to avoid accidentally calling them.

Location:
box/trunk/lib/common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/lib/common/IOStream.cpp

    r2433 r2439  
    2525IOStream::IOStream() 
    2626{ 
    27 } 
    28  
    29 // -------------------------------------------------------------------------- 
    30 // 
    31 // Function 
    32 //              Name:    IOStream::IOStream(const IOStream &) 
    33 //              Purpose: Copy constructor (exceptions) 
    34 //              Created: 2003/07/31 
    35 // 
    36 // -------------------------------------------------------------------------- 
    37 IOStream::IOStream(const IOStream &rToCopy) 
    38 { 
    39         THROW_EXCEPTION(CommonException, NotSupported) 
    4027} 
    4128 
  • box/trunk/lib/common/IOStream.h

    r2433 r2439  
    2323public: 
    2424        IOStream(); 
    25         IOStream(const IOStream &rToCopy); 
    2625        virtual ~IOStream(); 
    27          
     26 
     27private: 
     28        IOStream(const IOStream &rToCopy); /* forbidden */ 
     29        IOStream& operator=(const IOStream &rToCopy); /* forbidden */ 
     30                 
     31public: 
    2832        enum 
    2933        { 
Note: See TracChangeset for help on using the changeset viewer.