Hello.
This is valid in std::map:
std::map <int, int> m;
m[1] = 1000;
The type is: map<string, boost::weak_ptr<Animation> >
/*typedef boost::weak_ptr<Animation> registry_entry_type;
typedef std::map <std::string, registry_entry_type> registry_type;
registry_type _AnimationMap;*/
_AnimationMap[category] = boost::weak_ptr <Animation> ( new Animation() );
I get:
error C2440: '<function-style-cast>' : cannot convert from 'Min::Animation *' to 'boost::weak_ptr<T>'
1> with
1> [
1> T=Min::Animation
1> ]
1> No constructor could take the source type, or constructor overload resolution was ambiguous