LWG-2220 Under-specification of `operator==` for `regex_token_iterator`
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 48/100
Línea de trabajo
Read stl/inc/regex around lines 3183–3189 and compare regex_token_iterator::operator== with the quoted WG21-N5054 Returns wording. Check the implementation against the end-of-sequence, suffix, and ordinary iterator cases; also consider whether a debug precondition check for the same underlying sequence is feasible. Done means the implementation's behavior and any proposed check are assessed against the stated requirements.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
LWG-2220 Under-specification of operator== for regex_token_iterator
This LWG issue resolution is adding Preconditions, which would usually make it N/A for us, under the heading of "Something that increases the restrictions placed on users, but implementers aren't expected to enforce those restrictions." However, I'm tracking this with a GitHub issue for two reasons:
(1) We should consider whether it's feasible to add a debug precondition check for "same underlying sequence".
(2) It's unclear to me whether we correctly implement the existing Returns. Currently that's WG21-N5054 [re.tokiter.comp]/1:
bool operator==(const regex_token_iterator& right) const;
Returns:trueif*thisandrightare both end-of-sequence iterators, or if*thisandrightare both suffix iterators andsuffix == right.suffix; otherwise returnsfalseif*thisorrightis an end-of-sequence iterator or a suffix iterator. Otherwise returnstrueifposition == right.position,N == right.N, andsubs == right.subs. Otherwise returnsfalse.
The code doesn't immediately strike me as Doing What The Standard Says:
- Lenguaje dominante
- C++
- Estrellas
- 11.2k
- Forks
- 1.7k
- Merge medio
- 4 d 4 h
- PR fusionados (30 d)
- 14
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de microsoft/STL
-
LWG
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 2 días
-
generator LWG
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 2 días
-
LWG
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 2 días
-
`<__msvc_math.hpp>`: `_USE_MATH_DEFINES` is ignored after the first `<math.h>` include under `/Zc:cmath`Posiblemente ocupada @tiagomacarios la tomó hace 10 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 2 días
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 2 días
Todos los issues de microsoft/STL
Issues similares
-
bug data-types
Dificultad 2/5 1-3 horas Aptitud para principiantes 71/100
ClickHouse/clickhouse-odbc#680 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
ionut-mihalache/aqua#31 · 1 comentario ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
needs-kind
Dificultad 2/5 1-3 horas Aptitud para principiantes 63/100
villagesql/villagesql-server#1702 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
microsoft/vcpkg-tool#2191 · 1 reacción ·
Los mantenedores suelen responder en 1 día