This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
RE: How do I select a version of libstdc+ to link against?
> > If the Ubuntu case is using that library, that could explain the failure.
>
> Why not use ldd to be sure?
>
>
> Anyway, the right way to write that loop is:
>
> while (iss>>std::boolalpha>>b)
> {
> myVect.push_back(b);
> }
>
> It seems to be the most common error with iostreams to try and test stream
> states explicitly and unnecessarily, which leads to verbose and complicated
> code.
>
Thanks very much for your help.