summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>