Replace auto_ptr

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/32/head
Michele Calgaro 3 months ago
parent c20f4d8f2c
commit d6118d8a63
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -81,7 +81,7 @@ bool AdviseFast::RuleSet::apply()
{
while(!_rules.empty()){
set<Entry>::iterator i = _rules.begin();
std::auto_ptr<Rule> r (this->newRule(*i));
std::unique_ptr<Rule> r (this->newRule(*i));
_rules.erase(i);
if(r->apply(&this->_surePoints)) return true;

Loading…
Cancel
Save