|
Boost Users : |
From: Camille Lemen (lemen_at_[hidden])
Date: 2006-03-10 13:00:13
Le Jeudi 9 Mars 2006 17:08, Douglas Gregor a écrit :
> On Mar 9, 2006, at 8:08 AM, Camille Lemen wrote:
> > param.clear();
>
> Your problem is here. You should not be calling "clear()" on param,
> because that will make it have zero elements. The next line of code,
> that tries to write to the 0th element of param, is actually
> incorrect. Remove the param.clear(); line and things should work as
> expected.
>
> > param[0] = 2;
> > std::cerr<<"param[0] = "<<param[0]<<std::endl;
> > param[1] = 50;
> > std::cerr<<"param[1] = "<<param[1]<<std::endl;
>
> Doug
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
Thanks!!
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