From: Marco Costalba Date: Wed, 10 Feb 2010 20:27:44 +0000 (+0100) Subject: Fix a couple of new MSVC 2010 warnings X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=711ef615c7e8386365f5b16ed97d596399032235;ds=sidebyside Fix a couple of new MSVC 2010 warnings 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 --- diff --git a/src/book.h b/src/book.h index 33f72fb5..b68f7bfc 100644 --- a/src/book.h +++ b/src/book.h @@ -53,7 +53,10 @@ struct BookEntry { }; class Book : private std::ifstream { + Book(const Book&); // just decleared.. + Book& operator=(const Book&); // ..to avoid a warning public: + Book() {} ~Book(); void open(const std::string& fName); void close();