Boost logo

Boost Users :

From: Scott McMurray (me22.ca+boost_at_[hidden])
Date: 2007-12-14 00:44:33


On 13/12/2007, merlin antony <antonymerlin_at_[hidden]> wrote:
> this stl maps is datatype specific. eg map<int,int>, map <string,int>, etc..
> is they any way to create a template map like map<T,T>. so that the map is
> compatible across any datatype being passed to it?

A map to/from variants or anys might be what you're looking for. On
the other hand, it's rare to really need to handle "anything", so a
redesign might be a better idea.

~ Scott


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