diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-06-25 00:07:15 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-06-25 00:07:15 +0900 |
| commit | 2761301dfb6e12fd229f65b49eb28391e49ca671 (patch) | |
| tree | ba79ac33a99e136bfd3ccedaa1928ec38cea416a /src/ServerStatMan.cc | |
| parent | 2f6eff3821d11608215292792d0879efeeabe2e3 (diff) | |
Rewrite util::divide
Diffstat (limited to 'src/ServerStatMan.cc')
| -rw-r--r-- | src/ServerStatMan.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ServerStatMan.cc b/src/ServerStatMan.cc index ddeca299..f22e0585 100644 --- a/src/ServerStatMan.cc +++ b/src/ServerStatMan.cc @@ -185,8 +185,7 @@ bool ServerStatMan::load(const std::string& filename) std::vector<std::string> m(MAX_FIELD); for(std::vector<Scip>::const_iterator i = items.begin(), eoi = items.end(); i != eoi; ++i) { - std::pair<Scip, Scip> p; - util::divide(p, (*i).first, (*i).second, '='); + auto p = util::divide((*i).first, (*i).second, '='); int id = idField(p.first.first, p.first.second); if(id != MAX_FIELD) { m[id].assign(p.second.first, p.second.second); |
