X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.h;h=679a636d30154080f7e276adc11c02053b70476d;hp=86acd20d0eb7a174b779147f8e992dce9ff4a7c5;hb=152a4dc5cd1c5190b607f4b819ad9bd10bcc1baa;hpb=f53aea45e3230239d358d4d35357c9ee6bf6fb54 diff --git a/src/position.h b/src/position.h index 86acd20d..679a636d 100644 --- a/src/position.h +++ b/src/position.h @@ -82,12 +82,11 @@ class Position { friend std::ostream& operator<<(std::ostream&, const Position&); - Position(const Position&); // Disable the default copy constructor - public: static void init(); - Position() {} // To define the global object RootPos + Position() = default; // To define the global object RootPos + Position(const Position&) = delete; Position(const Position& pos, Thread* th) { *this = pos; thisThread = th; } Position(const std::string& f, bool c960, Thread* th) { set(f, c960, th); } Position& operator=(const Position&); // To assign RootPos from UCI @@ -175,7 +174,7 @@ public: Value non_pawn_material(Color c) const; // Position consistency check, for debugging - bool pos_is_ok(int* step = nullptr) const; + bool pos_is_ok(bool fast = true, int* failedStep = nullptr) const; void flip(); private: