Try to fix an order-of-initialisation problem with error_category references.

The symptom, which only occurs in some applications, is a crash due to a
dereference of a null pointer. The exact conditions under which the problem
occurs are not fully understood, so this fix is probably more paranoid than
necessary.


[SVN r41100]
This commit is contained in:
Christopher Kohlhoff committed 2007-11-15 06:19:04 +00:00
1 parent 966931ad20
commit 4d3adbca3f
4 files changed
+9 -9

No files matched your search

+1 -1
View File
@@ -107,7 +107,7 @@ namespace boost
namespace windows_error
{
inline error_code make_error_code( windows_error_code e )
{ return error_code( e, system_category ); }
{ return error_code( e, get_system_category() ); }
}
} // namespace system