I am using MSVC 2015, where I have a type which can be moved, but not copied. From what I gather, since C++11, the container type doesn't have to copyable. However, on creating a std::vector of such type, I get numerous compilation errors from xmemory header (which says that a bunch of std::allocator member functions require the copy constructor).
I have tried writing a minimal test case but that does compile fine. The existing code is a huge piece of code which I cannot copy and paste here. What can be the possible things that I can look into to figure out why the copy constructor is being requested?
Aucun commentaire:
Enregistrer un commentaire