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


On 03.05.19 08:37, Adrien Ollier wrote:
Hi,

"and" is a C++ keyword (https://en.cppreference.com/w/cpp/keyword, https://en.cppreference.com/w/cpp/keyword/and) which is the logical AND (&&). I am surprised it is not recognized.

using "and" in C++ is unidiomatic.

the idiomatic way is to either use "&&" or "#define AND &&" and use "AND" [1].

[1] https://cgit.freedesktop.org/libreoffice/core/tree/include/cosv/csv_env.hxx?id=be49d3a25bc867c4f523cc6ff51ed2e8df9211d7#n60

PS: this email may contain traces of sarcasm ;)

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.