Boost logo

Boost Users :

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


Hello!

Thanks for the great lib again. I was using a fusion::map container and discovered the following
error at:

http://spirit.sourceforge.net/dl_more/fusion_v2/libs/fusion/doc/html/fusion/sequences/containers/map.html

The exsample states:

typedef map<
    pair<int, char>
  , pair<double, std::string> >
map_type;

map_type m(
    make_pair<int>('X')
  , make_pair<double>("Men"));

std::cout << at<int>(m) << std::endl;
std::cout << at<double>(m) << std::endl;
             ^^-- error

Where it should be not at<TYPE>(...) but at_key<TYPE>(...).

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