std::list in a boost::interprocess::managed_shared_memory
问题 Recently I got schooled and learnt the proper way of having a unordered_map inside a boost::interprocess::managed_shared_memory segment. So far so good, but I will need to add a few more STL containers. Ideally, I would want to be able to follow the same for any STL container. Right now I'm in need of a std::list. I can't make it work. I can make a std::vector work, though. std::vector The following code works: #include <vector> #include <boost/interprocess/managed_shared_memory.hpp>