From cd4c6507790549cec187fab5c13d6ee7997fa834 Mon Sep 17 00:00:00 2001 From: Dawn Perchik Date: Sat, 16 Nov 2019 00:46:02 -0800 Subject: [PATCH] LWG3277 Pre-increment on prvalues is not a requirement of weakly_incrementable Also fixes NB US 261 (C++20 CD). --- source/iterators.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/iterators.tex b/source/iterators.tex index 3f7691fba0..b33be64f48 100644 --- a/source/iterators.tex +++ b/source/iterators.tex @@ -1779,7 +1779,7 @@ \tcode{(a + D(x + y))} is equal to \tcode{((a + x) + y)}. \item \tcode{(a + D(0))} is equal to \tcode{a}. \item If \tcode{(a + D(n - 1))} is valid, then - \tcode{(a + n)} is equal to \tcode{++(a + D(n - 1))}. + \tcode{(a + n)} is equal to \tcode{[](I c)\{ return ++c; \}}. \item \tcode{(b += -n)} is equal to \tcode{a}. \item \tcode{(b -= n)} is equal to \tcode{a}. \item \tcode{addressof(b -= n)} is equal to \tcode{addressof(b)}.