This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: libstdc++/3759: nonconforming use of unqualified std:: names



----- Original Message -----
From: "Gabriel Dos Reis" <gdr@codesourcery.com>

> | Is my logic incorrect for citing 14.6.4?  If so, which section(s)
> | should be cited?
>
> An unsopken rule which requires the library to adhere to the Principle
> of Least Surprise.


IMO it's the unspoken rule that the library behaves according to its
specification (do we really need to say that? THIS STANDARD MEANS WHAT IT
SAYS AND NOT SOMETHING ELSE). The specification does not say that if I
define a function called fill() whose semantics don't match the standard's
fill(), my fill funtion will be called when I try to insert into a vector,
and the semantics of vector::insert will be changed accordingly.

-Dave


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]