This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/26974] hidden declarations klobber STL
- From: "igodard at pacbell dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Apr 2006 09:57:20 -0000
- Subject: [Bug libstdc++/26974] hidden declarations klobber STL
- References: <bug-26974-6594@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #16 from igodard at pacbell dot net 2006-04-20 09:57 -------
Well, I don't see how the templating of the STL code can influence whether or
not my declarations are in scope or not.
BTAIM, my declarations are certainly inappropriate for what the STL is looking
for at the call site. Assuming that user declarations are in scope, the only
thing I can think of that the STL might do to avoid unwittingly falling into
user code in cases like this is to apply boost-style concept checks, which
would have immediately eliminated my operators from consideration in this case.
However, adding concept checks to a large hunk of wooly code is not trivial. We
use them, and our experience is that they are well worth the effort because
they expose subtle bugs in our semantics, but they are not free to implement,
especially if the code was not originally written with concept-checking in
mind.
Ivan
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26974