From 47137ad116d185bdca73ccde4127bceee5d7a36e Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 19 Sep 2021 15:04:51 +0300 Subject: [PATCH] Change predefined error_category identifiers to be contiguous for better codegen --- include/boost/system/detail/error_category.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/system/detail/error_category.hpp b/include/boost/system/detail/error_category.hpp index 092fe7a..a205d81 100644 --- a/include/boost/system/detail/error_category.hpp +++ b/include/boost/system/detail/error_category.hpp @@ -173,9 +173,9 @@ public: namespace detail { -static const boost::ulong_long_type generic_category_id = ( boost::ulong_long_type( 0xB2AB117A ) << 32 ) + 0x257EDF0D; -static const boost::ulong_long_type system_category_id = ( boost::ulong_long_type( 0x8FAFD21E ) << 32 ) + 0x25C5E09B; -static const boost::ulong_long_type interop_category_id = ( boost::ulong_long_type( 0x943F2817 ) << 32 ) + 0xFD3A8FAF; +static const boost::ulong_long_type generic_category_id = ( boost::ulong_long_type( 0xB2AB117A ) << 32 ) + 0x257EDFD0; +static const boost::ulong_long_type system_category_id = generic_category_id + 1; +static const boost::ulong_long_type interop_category_id = generic_category_id + 2; BOOST_SYSTEM_CONSTEXPR inline bool failed_impl( int ev, error_category const & cat ) {