]> git.sesse.net Git - stockfish/commitdiff
Fix a couple of new MSVC 2010 warnings
authorMarco Costalba <mcostalba@gmail.com>
Wed, 10 Feb 2010 20:27:44 +0000 (21:27 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Wed, 10 Feb 2010 20:27:44 +0000 (21:27 +0100)
Compiler complains because in Book we have a d'tor but not
copy c'tor and assignement operator (warning C4511 and C4512),
note that after adding them (just declared) you now need also
default c'tor !

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/book.h

index 33f72fb517333f0fb511d1d74c1a0fe409742bd6..b68f7bfcadb8ad258c4a8a0da0182e9f8fd479d2 100644 (file)
@@ -53,7 +53,10 @@ struct BookEntry {
 };
 
 class Book : private std::ifstream {
 };
 
 class Book : private std::ifstream {
+  Book(const Book&); // just decleared..
+  Book& operator=(const Book&); // ..to avoid a warning
 public:
 public:
+  Book() {}
   ~Book();
   void open(const std::string& fName);
   void close();
   ~Book();
   void open(const std::string& fName);
   void close();