boostorg / system

Boost.org system module
http://boost.org/libs/system
36 stars 85 forks source link

Do not poke into the protected _Addr member of std::error_category #98

Closed pdimov closed 1 year ago

pdimov commented 1 year ago

... as this creates problems for the MS STL (https://github.com/microsoft/STL/pull/3176).

Since a nonzero id is only passed when BOOST_SYSTEM_AVOID_STD_GENERIC_CATEGORY or BOOST_SYSTEM_AVOID_STD_SYSTEM_CATEGORY is defined, and since id is only stored into _Addr when the MS STL is 14x, but none of these macros are defined in this case, this code should be dead and it should be possible to remove it.