2
0
mirror of https://github.com/boostorg/asio.git synced 2026-02-22 13:42:08 +00:00

Fix spurious operator precedence warning with MSVC.

This commit is contained in:
Christopher Kohlhoff
2023-03-06 23:38:46 +11:00
parent 5f39737f5a
commit db1af40f2b

View File

@@ -2754,9 +2754,9 @@ struct hex_literal<bytes<Bytes...>, Hi, Lo, Chars...> :
static_cast<unsigned char>(
Lo >= 'A' && Lo <= 'F' ? Lo - 'A' + 10 :
(Lo >= 'a' && Lo <= 'f' ? Lo - 'a' + 10 : Lo - '0')) |
(static_cast<unsigned char>(
((static_cast<unsigned char>(
Hi >= 'A' && Hi <= 'F' ? Hi - 'A' + 10 :
(Hi >= 'a' && Hi <= 'f' ? Hi - 'a' + 10 : Hi - '0')) << 4)
(Hi >= 'a' && Hi <= 'f' ? Hi - 'a' + 10 : Hi - '0'))) << 4)
>, Chars...> {};
template <unsigned char... Bytes, char Char>