[v3] constexpr array additions
Gabriel Dos Reis
gdr@integrable-solutions.net
Wed Aug 3 14:19:00 GMT 2011
On Fri, Jul 22, 2011 at 3:42 PM, François Dumont
<francois.cppdevs@free.fr> wrote:
>
> Why returning _M_instance[0] if __n is invalid ? This is the best way
> to hide an issue under the carpet. I know that calling std::abort is not
> valid within a constexpr but returning a potentially valid instance will
> hide the problem, returning _M_instance[__n] have more chance to make the
> code break quickly.
would not that trip static analysis tools?
More information about the Libstdc++
mailing list