Don't allow copying BufferedFile

pull/1/head
Tatsuhiro Tsujikawa 2011-08-07 00:36:31 +09:00
parent 190d170076
commit 6034474550
1 changed files with 4 additions and 0 deletions

View File

@ -70,6 +70,10 @@ public:
// Mode for writing
static const std::string WRITE;
private:
// Don't allow copying
BufferedFile(const BufferedFile&);
BufferedFile& operator=(const BufferedFile&);
FILE* fp_;
// true when file has been opened.
bool open_;