From 0dbb38fe27e81790451a8233c5959e0fe26dc5ee Mon Sep 17 00:00:00 2001 From: Tim Crews Date: Fri, 14 Jun 2013 21:29:47 -0700 Subject: Source changes needed for Microsoft Visual C++ compatibility. Includes an implementation of strptime, compiled only for Win32 platform. --- src/history.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/history.cc') 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::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 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::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 edgePair = edge(sv, *f_vi, fg); Graph::edge_descriptor edge = edgePair.first; -- cgit v1.2.3