This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]