|
Boost Users : |
From: Christian Henning (chhenning_at_[hidden])
Date: 2007-04-02 10:11:48
Hi there, the example code of the list sequence doesn't compile.
list<int, float> l(12, 5.5f);
std::cout << at<0>(l) << std::endl;
std::cout << at<1>(l) << std::endl;
It should be:
list<int, float> l(12, 5.5f);
std::cout << at<mpl::int_<0> >(l) << std::endl;
std::cout << at<mpl::int_<1> >(l) << std::endl;
I'm using MSVC 7.1.
Regards,
Christian
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