diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2014-11-24 14:52:54 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2014-11-25 06:38:03 +0200 |
commit | ebb408d6194e0d16192738a5523706367dbebf51 (patch) | |
tree | fc4d15973e7f849bd4cc2166922786d62333538c /feature/container | |
parent | 9506e0a84df5112bf9af7c810e38d71d85c5c0b4 (diff) |
Add feature: using object pointer as map key
Diffstat (limited to 'feature/container')
-rw-r--r-- | feature/container/list | 9 |
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 |