summaryrefslogtreecommitdiff
path: root/feature
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-11-24 14:52:54 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-11-24 14:52:54 +0200
commit914da26b00d7e28a9578971d938e85581b38a2af (patch)
treefc4d15973e7f849bd4cc2166922786d62333538c /feature
parent341dd1b7b6267cdd9e6e27f42cf92f87145b0696 (diff)
Add feature: using object pointer as map key
Diffstat (limited to 'feature')
-rw-r--r--feature/container/list9
1 files changed, 9 insertions, 0 deletions
diff --git a/feature/container/list b/feature/container/list
index a7a3ed9..5976551 100644
--- a/feature/container/list
+++ b/feature/container/list
@@ -1,3 +1,12 @@
+- Support for object pointers as map keys
+
+ std::map<std::shared_ptr<Product>, quantity> cart;
+
+ Interestingly, wrapping the pointer into a composite value type seems
+ to work (at least compiles).
+
+ See email from axel50397@gmail.com/23-Nov-2014.
+
- Use bulk statements for containers
Should be fairly straightforward since container tables are simple. For