This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


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

Re: Overloading vs. string functions, etc.


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


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