Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does the C++ standard's index have this entry for "undefined behavior"?

Both C++11 and C++14, in their index, have their entry for "undefined behavior" pointing to the section [istreambuf.iterator]. As far as I can see, there is no obvious reason for this, and C++03's entry pointed to [defns.undefined].

What am I missing? Or is it just an editorial mistake?

(As of 13th October, I cannot find any matching open or closed Core Working Group issues matching this observation.)

like image 341
Lightness Races in Orbit Avatar asked Nov 20 '14 23:11

Lightness Races in Orbit


1 Answers

The people over at std-discussion seem to agree that this is just an editorial issue.

I therefore raised it as such, so that it became draft issue 409 on github; it was promptly resolved and closed.

I will one day update this answer a final time with an identifier for the first draft containing the fix; the first standard it appears in will be C++17.

like image 173
Lightness Races in Orbit Avatar answered Oct 04 '22 00:10

Lightness Races in Orbit