Boost logo

Boost Users :

From: Joel de Guzman (joel_at_[hidden])
Date: 2006-05-03 17:57:36


John Christopher wrote:
> Hello,
> At the bottom of the page
> http://spirit.sourceforge.net/dl_more/fusion_v2/libs/fusion/doc/html/fusion/sequences/containers/vector.html
> there is the following example:
> vector<int, float> v(12, 5.5f);
> std::cout << at<0>(v) << std::endl;
> std::cout << at<1>(v) << std::endl;
> The example as such does not compile, Shouldn't it be:std::cout <<
> at_c<0>(v) << std::endl;orstd::cout << at<boost::mpl::int_<0> >(v) <<
> std::endl;

Yes, at_c is correct. Fixed in CVS. Thanks!

Cheers,

-- 
Joel de Guzman
http://www.boost-consulting.com
http://spirit.sf.net

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