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
@@ -57,7 +57,7 @@ void Vst3Logger::log_query_interface(
const std::string& where,
tresult result,
const std::optional<Steinberg::FUID>& uid) {
if (BOOST_UNLIKELY(logger.verbosity >= Logger::Verbosity::all_events)) {
if (logger.verbosity >= Logger::Verbosity::all_events) [[unlikely]] {
std::ostringstream message;
std::string uid_string = uid ? format_uid(*uid) : "<unknown_pointer>";