summaryrefslogtreecommitdiff
path: root/src/commodity.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-09 03:19:25 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-03-09 03:19:25 -0600
commit628875b33c4f1cd202091c9347ef0176f8b688fa (patch)
treea3de0dc0572a2cced0fb9eabc85b7591da03642c /src/commodity.h
parentb0cf90ab50ac42d3184d70cb1906778df034ddaa (diff)
downloadfork-ledger-628875b33c4f1cd202091c9347ef0176f8b688fa.tar.gz
fork-ledger-628875b33c4f1cd202091c9347ef0176f8b688fa.tar.bz2
fork-ledger-628875b33c4f1cd202091c9347ef0176f8b688fa.zip
Use Boost.Tuple
Diffstat (limited to 'src/commodity.h')
-rw-r--r--src/commodity.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/commodity.h b/src/commodity.h
index 3f493f8b..1358966e 100644
--- a/src/commodity.h
+++ b/src/commodity.h
@@ -117,11 +117,9 @@ protected:
optional<amount_t> larger;
optional<expr_t> value_expr;
- typedef std::pair<optional<datetime_t>,
- optional<datetime_t> > optional_time_pair_t;
- typedef std::pair<optional_time_pair_t,
- commodity_t *> time_and_commodity_t;
- typedef std::map<time_and_commodity_t,
+ typedef tuple<optional<datetime_t>,
+ optional<datetime_t>, commodity_t *> memoized_price_entry;
+ typedef std::map<memoized_price_entry,
optional<price_point_t> > memoized_price_map;
static const std::size_t max_price_map_size = 16;