mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-14 20:40:03 +02:00
Use C++20 [[unlikely]] instead of BOOST_UNLIKELY
This commit is contained in:
@@ -208,7 +208,7 @@ inline T& read_object(Socket& socket,
|
||||
bitsery::quickDeserialization<InputAdapter<SerializationBufferBase>>(
|
||||
{buffer.begin(), size}, object);
|
||||
|
||||
if (BOOST_UNLIKELY(!success)) {
|
||||
if (!success) [[unlikely]] {
|
||||
throw std::runtime_error("Deserialization failure in call: " +
|
||||
std::string(__PRETTY_FUNCTION__));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user