]> git.sesse.net Git - stockfish/blobdiff - src/position.h
Import C++11 branch
[stockfish] / src / position.h
index 3c7cf0f2a9cad7d33ebb33e664090bbdf4f8f517..85ea6a7a8020311046c04fe7b15a1d5faf158ebc 100644 (file)
@@ -1,7 +1,7 @@
 /*
   Stockfish, a UCI chess playing engine derived from Glaurung 2.1
   Copyright (C) 2004-2008 Tord Romstad (Glaurung author)
-  Copyright (C) 2008-2014 Marco Costalba, Joona Kiiski, Tord Romstad
+  Copyright (C) 2008-2015 Marco Costalba, Joona Kiiski, Tord Romstad
 
   Stockfish is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -22,6 +22,7 @@
 
 #include <cassert>
 #include <cstddef>  // For offsetof()
+#include <string>
 
 #include "bitboard.h"
 #include "types.h"
@@ -169,12 +170,11 @@ public:
   uint64_t nodes_searched() const;
   void set_nodes_searched(uint64_t n);
   bool is_draw() const;
-  int rule50_count() const;
   Score psq_score() const;
   Value non_pawn_material(Color c) const;
 
   // Position consistency check, for debugging
-  bool pos_is_ok(int* step = NULL) const;
+  bool pos_is_ok(int* step = nullptr) const;
   void flip();
 
 private:
@@ -347,10 +347,6 @@ inline int Position::game_ply() const {
   return gamePly;
 }
 
-inline int Position::rule50_count() const {
-  return st->rule50;
-}
-
 inline uint64_t Position::nodes_searched() const {
   return nodes;
 }