[llvm] r215988 - CodingStandards: Document std::equal misbehaviour

Duncan P. N. Exon Smith dexonsmith at apple.com
Tue Aug 19 09:49:40 PDT 2014


Author: dexonsmith
Date: Tue Aug 19 11:49:40 2014
New Revision: 215988

URL: http://llvm.org/viewvc/llvm-project?rev=215988&view=rev
Log:
CodingStandards: Document std::equal misbehaviour

I should have included this as part of r215986, which worked around this
corner by changing ArrayRef::equals() not to use std::equal.  Alas.

Modified:
    llvm/trunk/docs/CodingStandards.rst

Modified: llvm/trunk/docs/CodingStandards.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/CodingStandards.rst?rev=215988&r1=215987&r2=215988&view=diff
==============================================================================
--- llvm/trunk/docs/CodingStandards.rst (original)
+++ llvm/trunk/docs/CodingStandards.rst Tue Aug 19 11:49:40 2014
@@ -162,6 +162,8 @@ being aware of:
 * ``std::initializer_list`` (and the constructors and functions that take it as
   an argument) are not always available, so you cannot (for example) initialize
   a ``std::vector`` with a braced initializer list.
+* ``std::equal()`` (and other algorithms) incorrectly assert in MSVC when given
+  ``nullptr`` as an iterator.
 
 Other than these areas you should assume the standard library is available and
 working as expected until some build bot tells you otherwise. If you're in an





More information about the llvm-commits mailing list