This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Overloading vs. string functions, etc.
- To: Mark Mitchell <mark at codesourcery dot com>
- Subject: Re: Overloading vs. string functions, etc.
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- Date: 24 May 2001 20:52:50 +0200
- Cc: libstdc++ at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
- References: <20010524112207W.mitchell@codesourcery.com>
Mark Mitchell <mark@codesourcery.com> writes:
[...]
| This is a pretty serious issue since a lot of people write code like
| this.
Agreed.
| ... What can we do before the release to solve this problem,
| without tackling the whole problem of conformant headers?
No much, apart from facing the problem directly whose solution
requires much more effort than initially estimated :-(
| How about `#define strcpy __glibcpp_strcpy' in std_cstring.h before
| including /usr/includ/string.h? I think that would do the trick.
| Thoughts?
That would work only if the host <string.h> doesn't protect strcpy
declaration against macro expansion.
| I will a GNATS bug report about this so that we do not forget.
100% agreed. Thanks.
-- Gaby