Date: prev next · Thread: first prev next last
2014 Archives by date, by thread · List index


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, 



Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.