Boost any usage
- by Ockonal
Hello, how can I insert my own class objects into ptr_map from boost. The objects are templated so I can't use some static typename in the map. So I did:
ptr_map<string, any> someMap;
My class inherits the boost::noncopyable.
someMap.insert("Test", new MyClass());
The error is: error: no matching function for call to ‘boost::ptr_map.