summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2019-03-15 16:30:42 -0700
committerJohn Wiegley <johnw@newartisans.com>2019-03-15 17:30:47 -0700
commit1d8f88333fbf209a6af2160f91da4e62f8acc767 (patch)
treee5596a2469d152ffb90dad7ff566201d59d84b4f
parentf0dacdb22f2888be104711d9092ca43d770965f2 (diff)
downloadfork-ledger-1d8f88333fbf209a6af2160f91da4e62f8acc767.tar.gz
fork-ledger-1d8f88333fbf209a6af2160f91da4e62f8acc767.tar.bz2
fork-ledger-1d8f88333fbf209a6af2160f91da4e62f8acc767.zip
Switch amounts_map to std::unordered_map
-rw-r--r--src/balance.h2
-rw-r--r--src/system.hh.in1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/balance.h b/src/balance.h
index b9c9c2c8..4ad960df 100644
--- a/src/balance.h
+++ b/src/balance.h
@@ -80,7 +80,7 @@ class balance_t
multiplicative<balance_t, long> > > > > > > > > > > > > >
{
public:
- typedef std::map<commodity_t *, amount_t> amounts_map;
+ typedef std::unordered_map<commodity_t *, amount_t> amounts_map;
typedef std::vector<const amount_t *> amounts_array;
amounts_map amounts;
diff --git a/src/system.hh.in b/src/system.hh.in
index 97651e8b..3ee74be2 100644
--- a/src/system.hh.in
+++ b/src/system.hh.in
@@ -93,6 +93,7 @@
#include <iterator>
#include <list>
#include <map>
+#include <unordered_map>
#include <memory>
#include <new>
#include <set>