diff --git a/libs/util/include/psemek/util/mutexed.hpp b/libs/util/include/psemek/util/mutexed.hpp index 9427518e..da0373b2 100644 --- a/libs/util/include/psemek/util/mutexed.hpp +++ b/libs/util/include/psemek/util/mutexed.hpp @@ -38,7 +38,7 @@ namespace psemek::util value_ = std::move(new_value); } - T exchange(T && new_value) const + T exchange(T && new_value) { std::lock_guard lock{mutex_}; std::swap(value_, new_value);