Boost logo

Boost Users :

From: John Christopher (jcxxr_at_[hidden])
Date: 2006-05-03 15:45:29

At the bottom of the page
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) <<

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