Use C++20 [[unlikely]] instead of BOOST_UNLIKELY

This commit is contained in:
Robbert van der Helm
2021-05-31 17:46:45 +02:00
parent 6a047497bc
commit 2bf1c4c5eb
5 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -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__));
}