From: Jens Maurer (Jens.Maurer_at_[hidden])
Date: 2000-11-22 15:35:08


Beman Dawes wrote:

> Andreas has supplied patches for these files:
[...]

> It would be helpful if the various library maintainers would apply them, if
> they believe them to be correct.

Note that the patches use _MSC_VER in a lot of places where BOOST_MSVC
would be more appropriate.

Note also that they add a few functions (for MSVC only) such as

namespace std {
  inline char* strchr(const char *wstr, int c) { return ::strchr(wstr, c); }
}

This will eventually lead to a clash where two boost header files
do this inline workaround for the same function.

The long-term fix (other than waiting for a proper compiler from MS)
is to move these workarounds to <boost/detail/cstd/XXX.hpp> header
files (for each C library standard header XXX.h) which should have
the standard-mandated set of functions in namespace std, regardless
how they get there.
Individual boost headers can then include the workarounds as
required, but multiple definitions are avoided.

Jens Maurer