Boost C++ Libraries: Ticket #5377: Use strerror_s to resolve error messages on Windows when possible https://svn.boost.org/trac10/ticket/5377 <p> In error_code.cpp, conditional macros choose the system call used to resolve error code values to strings (~line 81). The inline documentation mentions that strerror_r is used to provide thread-safety on platforms that expose that call. </p> <p> However, for Windows, the strerror call is always used, which is not thread-safe. </p> <p> Since VS2005, the Windows API has provided strerror_s, a thread-safe alternative to strerror that is similar to strerror_r. </p> <p> If possible, the strerror_s call should be used on Windows platforms that provide it. </p> <p> I am not an expert on the Boost way to select on Windows API versions internally so I hesitate to propose a patch but the form would be similar to that used for the strerror_r calls in that same area of the code. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5377 Trac 1.4.3