diff options
author | John Wiegley <johnw@newartisans.com> | 2013-06-17 14:03:07 -0700 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2013-06-17 14:03:07 -0700 |
commit | 90a1e13a3f3cb371bbea9c5ff3ed41031892dfac (patch) | |
tree | 9bec008355d592494bd9bf4274e56b48f76cc68a /src/history.cc | |
parent | fe810fa13f1e814e69dee2484c8b2878d5101d6c (diff) | |
parent | 4bcaa45f1663ca4ce3399ae412642624050c5060 (diff) | |
download | fork-ledger-90a1e13a3f3cb371bbea9c5ff3ed41031892dfac.tar.gz fork-ledger-90a1e13a3f3cb371bbea9c5ff3ed41031892dfac.tar.bz2 fork-ledger-90a1e13a3f3cb371bbea9c5ff3ed41031892dfac.zip |
Merge pull request #195 from code-affinity/msvc-11.0
Minor source code changes required to compile with Microsoft Visual C++ 11 (2012)
Diffstat (limited to 'src/history.cc')
-rw-r--r-- | src/history.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/history.cc b/src/history.cc index dde8c441..93883ae0 100644 --- a/src/history.cc +++ b/src/history.cc @@ -334,7 +334,7 @@ void commodity_history_impl_t::map_prices( FNameMap namemap(get(vertex_name, fg)); graph_traits<FGraph>::adjacency_iterator f_vi, f_vend; - for (tie(f_vi, f_vend) = adjacent_vertices(sv, fg); f_vi != f_vend; ++f_vi) { + for (boost::tuples::tie(f_vi, f_vend) = adjacent_vertices(sv, fg); f_vi != f_vend; ++f_vi) { std::pair<Graph::edge_descriptor, bool> edgePair = edge(sv, *f_vi, fg); Graph::edge_descriptor edge = edgePair.first; @@ -392,7 +392,7 @@ commodity_history_impl_t::find_price(const commodity_t& source, amount_t price; graph_traits<FGraph>::adjacency_iterator f_vi, f_vend; - for (tie(f_vi, f_vend) = adjacent_vertices(sv, fg); f_vi != f_vend; ++f_vi) { + for (boost::tuples::tie(f_vi, f_vend) = adjacent_vertices(sv, fg); f_vi != f_vend; ++f_vi) { std::pair<Graph::edge_descriptor, bool> edgePair = edge(sv, *f_vi, fg); Graph::edge_descriptor edge = edgePair.first; |