From 7b5371d07faead95678641cb890430dd0423f322 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 22 Jan 2024 10:48:19 +0900 Subject: Replace auto_ptr Signed-off-by: Michele Calgaro (cherry picked from commit d6118d8a635f3686b0dbb2ea559fbfb8d9550a22) --- kmines/solver/advFastRules.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kmines/solver/advFastRules.cpp b/kmines/solver/advFastRules.cpp index 79c42bba..e9ad110f 100644 --- a/kmines/solver/advFastRules.cpp +++ b/kmines/solver/advFastRules.cpp @@ -81,7 +81,7 @@ bool AdviseFast::RuleSet::apply() { while(!_rules.empty()){ set::iterator i = _rules.begin(); - std::auto_ptr r (this->newRule(*i)); + std::unique_ptr r (this->newRule(*i)); _rules.erase(i); if(r->apply(&this->_surePoints)) return true; -- cgit v1.2.1