Boost logo

Boost Users :

Subject: Re: [Boost-users] storing pointers in a std::map
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2010-03-11 16:06:14


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 list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net