Non standard return fails to compile
Abierto
- Lenguaje dominante
- C++
- Estrellas
- 24
- Forks
- 55
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
This statement:
return BOOST_ASSERT_MSG( i < N, "out of range" ), elems[i];
is a non-standard form of return.
In case we compile optimized code that lacks assert function but still want something this code fails to compile.
Separating this to a more standard form solves the issue:
BOOST_ASSERT_MSG( i < N, "out of range" );
return elems[i];
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.