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?


On 22 September 2011 11:46, David Aldrich wrote:
>
> Thanks for your replies. ?I am sorry that my post was inappropriate for this list, but if I explain my problem further I think you will find some relevance.

It's still not about the development of libstdc++, so the gcc-help
would be more appropriate.

> 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.


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