mirror of
https://github.com/boostorg/system.git
synced 2025-07-30 12:37:13 +02:00
Rename id
to id_
to avoid ObjC++ parsing issues. Fixes #52.
This commit is contained in:
@ -783,11 +783,11 @@ inline std::size_t hash_value( error_code const & ec )
|
|||||||
{
|
{
|
||||||
error_category const & cat = ec.category();
|
error_category const & cat = ec.category();
|
||||||
|
|
||||||
boost::ulong_long_type id = cat.id_;
|
boost::ulong_long_type id_ = cat.id_;
|
||||||
|
|
||||||
if( id == 0 )
|
if( id_ == 0 )
|
||||||
{
|
{
|
||||||
id = reinterpret_cast<boost::uintptr_t>( &cat );
|
id_ = reinterpret_cast<boost::uintptr_t>( &cat );
|
||||||
}
|
}
|
||||||
|
|
||||||
boost::ulong_long_type hv = ( boost::ulong_long_type( 0xCBF29CE4 ) << 32 ) + 0x84222325;
|
boost::ulong_long_type hv = ( boost::ulong_long_type( 0xCBF29CE4 ) << 32 ) + 0x84222325;
|
||||||
@ -795,7 +795,7 @@ inline std::size_t hash_value( error_code const & ec )
|
|||||||
|
|
||||||
// id
|
// id
|
||||||
|
|
||||||
hv ^= id;
|
hv ^= id_;
|
||||||
hv *= prime;
|
hv *= prime;
|
||||||
|
|
||||||
// value
|
// value
|
||||||
|
Reference in New Issue
Block a user