LLVM Coding Standards

Mafi mafi at example.org
Tue Apr 12 03:21:49 PDT 2011


Am 12.04.2011 00:31, schrieb Spacen Jasset:
> std::getline(is, line);
> while (line.size() != 0)
> {
>          ...some things...
>      std::getline(is, line);
> }

What's wrong with
while( std::getline(is, line), (line.size() != 0) ) {
   //... some things
}

I mean, that's what the comma operator is for.


More information about the Digitalmars-d mailing list