summaryrefslogtreecommitdiff
path: root/src/history.cc
diff options
context:
space:
mode:
authorTim Crews <tim@code-affinity.com>2013-06-14 21:29:47 -0700
committerTim Crews <tim@code-affinity.com>2013-06-14 21:29:47 -0700
commit0dbb38fe27e81790451a8233c5959e0fe26dc5ee (patch)
tree0af89e3e10e5c4fe7de0070e9e6ccc6cb8ee7d93 /src/history.cc
parentfe810fa13f1e814e69dee2484c8b2878d5101d6c (diff)
downloadfork-ledger-0dbb38fe27e81790451a8233c5959e0fe26dc5ee.tar.gz
fork-ledger-0dbb38fe27e81790451a8233c5959e0fe26dc5ee.tar.bz2
fork-ledger-0dbb38fe27e81790451a8233c5959e0fe26dc5ee.zip
Source changes needed for Microsoft Visual C++ compatibility.
Includes an implementation of strptime, compiled only for Win32 platform.
Diffstat (limited to 'src/history.cc')
-rw-r--r--src/history.cc4
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;