I am using Visual Studio 2012. I have a map that looks like this:
std::map,std::unique_ptr
Look at the template definition for std::map
:
template<
class Key,
class T,
class Compare = std::less,
class Allocator = std::allocator >
> class map;
And now lets look at how you try to instantiate it:
std::map<
std::string,
std::map<
std::unique_ptr,
std::unique_ptr
>
>
listSoundContainer
The problem here is that a std::unique_ptr
cannot act as a key.
What you seem trying to do is to make some kind of list of std::pair
I would suggest using this instead:
std::map<
std::string,
std::list<
std::pair<
std::unique_ptr,
std::unique_ptr
>
>
>
listSoundContainer