Skip to content

Commit

Permalink
Fixed some happy little mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
Lennart Nachtigall committed Nov 21, 2024
1 parent 16bd2ba commit 4138280
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/realtime_tools/realtime_box.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class RealtimeBoxBase
}
return *this;
}
constexpr RealtimeBox(RealtimeBoxBase && o)
constexpr RealtimeBoxBase(RealtimeBoxBase && o)
{
// Lock the other box mutex
std::unique_lock<mutex_t> lock(o.lock_);
Expand Down Expand Up @@ -278,18 +278,18 @@ class RealtimeBoxBase

// Only kept for compatibility reasons
template <typename T, typename mutex_type = std::mutex>
using RealtimeBoxBestEffort [[deprecated]] = RealtimeBox<T, mutex_type>;
using RealtimeBoxBestEffort [[deprecated]] = RealtimeBoxBase<T, mutex_type>;

// Provide specialisations for different mutex types
template <typename T>
using RealtimeBoxStandard = RealtimeBox<T, std::mutex>;
using RealtimeBoxStandard = RealtimeBoxBase<T, std::mutex>;

template <typename T>
using RealtimeBoxRecursive = RealtimeBox<T, std::recursive_mutex>;
using RealtimeBoxRecursive = RealtimeBoxBase<T, std::recursive_mutex>;

// This is the specialisation we recommend to use in the end
template <typename T>
using RealtimeBox = RealtimeBoxDefault<T>;
using RealtimeBox = RealtimeBoxStandard<T>;

} // namespace realtime_tools

Expand Down

0 comments on commit 4138280

Please sign in to comment.