Thanks. I presume it would be better in implementing a map that can hold left = std::string, right = "any" but only pointers to objects to have a boost::map_ptr<std::string> than a std::map<std::string, boost::any>.


On 11 March 2010 21:06, Thorsten Ottosen <thorsten.ottosen@dezide.com> wrote:
Alan Tennant skrev:

Thanks guys. I'm embarrassed to say that it was the #include <string> problem.

use

 boost::ptr_map<std::string,int>

or

 std::map<std::string,boost::shared_ptr<int>>

to manange the memory, if you need that.

-Thorsten

_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users