I can't seem to make boost::ptr_unordered_map<uint32_t, const Foo>
work - the underlying implementation looks like it's casting things to a void*
.
Do I just have to bite the bullet and make my methods that wrap access to this do a const_cast<Foo*>
when inserting items, or is there something I'm missing here? Is there any way to store pointers to const objects (const Foo*
)?