$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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