Non standard return fails to compile
Aperta
- Lingua principale
- C++
- Stelle
- 24
- Fork
- 55
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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];
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.