summaryrefslogtreecommitdiff
path: root/src/commodity.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-14 11:09:28 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:50 -0400
commit59fc3d1bdb01b7195a0f9745fe9914ac31b8a3a5 (patch)
treeb925cd5f52bed29606364c76a08c0b7795ebcedd /src/commodity.h
parent77db7eb92f730af315d4bcdf831cc67acb386b58 (diff)
downloadfork-ledger-59fc3d1bdb01b7195a0f9745fe9914ac31b8a3a5.tar.gz
fork-ledger-59fc3d1bdb01b7195a0f9745fe9914ac31b8a3a5.tar.bz2
fork-ledger-59fc3d1bdb01b7195a0f9745fe9914ac31b8a3a5.zip
Initial implementation of document_builder_t.
Diffstat (limited to 'src/commodity.h')
-rw-r--r--src/commodity.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/commodity.h b/src/commodity.h
index 84ca5fff..6212e743 100644
--- a/src/commodity.h
+++ b/src/commodity.h
@@ -318,9 +318,7 @@ class commodity_pool_t : public noncopyable
typedef multi_index_container<
commodity_t *,
multi_index::indexed_by<
- multi_index::ordered_unique<
- multi_index::member<commodity_t,
- commodity_t::ident_t, &commodity_t::ident> >,
+ multi_index::random_access<>,
multi_index::hashed_unique<
multi_index::const_mem_fun<commodity_t,
string, &commodity_t::mapping_key> >