Boost logo

Boost Users :

From: Ovanes Markarian (om_boost_at_[hidden])
Date: 2007-04-19 14:02:13


Hello all!

I have a question on static typing. Does someone know or can imagine a way on producing unique
static types. An example:

typedef unsigned int some_type;
typedef unsigned int other_type;

typedef fusion::map< fusion::pair<some_type, std::string>, fusion::pair<other_type, std::string> >
 my_map;

my_map my_map_(fusion::make_pair<some_type>("some_type"),
fusion::make_pair<other_type>("other_type"));

at_key<other_type>(my_map) should return "other_type" and not "some_type"

Many thanks in advance.

With Kind Regards,

Ovanes


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