]> git.sesse.net Git - stockfish/blobdiff - src/book.h
Convert book.cpp to use C++ I/O
[stockfish] / src / book.h
index ee3f5c5a7a3a3a7b7c87a6ddc6de8088c69963f3..ccbe813fe40d37ad1ffe9db4f2879733e9246554 100644 (file)
@@ -32,6 +32,7 @@
 //// Includes
 ////
 
 //// Includes
 ////
 
+#include <fstream>
 #include <string>
 
 #include "move.h"
 #include <string>
 
 #include "move.h"
@@ -74,7 +75,7 @@ private:
   void read_entry(BookEntry &entry, int n) const;
 
   std::string fileName;
   void read_entry(BookEntry &entry, int n) const;
 
   std::string fileName;
-  FILE *bookFile;
+  mutable std::ifstream bookFile;
   int bookSize;
 };
 
   int bookSize;
 };