C++11 on master (towards LO 4.5)

Terrence Enger tenger at iseries-guru.com
Tue Nov 25 07:34:07 PST 2014


On Tue, 2014-11-25 at 09:13 +0100, Stephan Bergmann wrote:
interesting stuff about features of C++ supported by various
compilers.

The range-based `for` offers clearer code, IMHO.  When, I wonder, is
it appropriate to use it?
(*) New code?
(*) When I am changing a for-statement anyway?
(*) Throughout a function when I am changing a for-statement anyway?
(*) Not at all until we are ready to make the change throughout the
    system?

Similarly, what about `auto` type declarations (which often fit
naturally into variable definitions in a for-statement?

Thanks,
Terry, 




More information about the LibreOffice mailing list