Boost logo

Boost Users :

Subject: [Boost-users] returning pointer to Boost::assign::map_list_of
From: alapex0310_at_[hidden]
Date: 2010-07-15 07:00:40


I am new to Boost::Assign.

I have a std::map<std::string, unsigned char> and I have a SomeClass
with constructor SomeClass(std::string, std::map<std::string, unsigned
char>*) and I want to pass the pointer to the result of map_list_of to
SomeClass like this:

            SomeClass *psc = new

In the example at ,
the map_list_of is definitely returning a small map. I don't want to
pass the map object itself but the pointer to the map object returned by

Please help me.

-Best regards

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at