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
2007-11-15 06:19:04 +00:00
parent 966931ad20
commit 4d3adbca3f
4 changed files with 9 additions and 9 deletions

View File

@@ -99,7 +99,7 @@ namespace boost
namespace linux_error
{
inline error_code make_error_code( linux_errno e )
{ return error_code( e, system_category ); }
{ return error_code( e, get_system_category() ); }
}
} // namespace system