Skip to content

Commit

Permalink
fix compile issue5
Browse files Browse the repository at this point in the history
  • Loading branch information
womendoushihaoyin committed Jan 15, 2025
1 parent decf3e7 commit 267bf0a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/slic3r/Utils/TimeoutMap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ struct has_on_timeout : std::false_type {};
template<typename T>
struct has_on_timeout<T, std::void_t<decltype(std::declval<T>().on_timeout())>> : std::true_type {};

template<typename T, typename = void>
struct has_timeout_callback : std::false_type {};

template<typename T>
struct has_timeout_callback<T,
std::void_t<decltype(std::declval<T>().timeout_cb)>> : std::true_type {};

// A thread-safe map container that automatically removes entries after a timeout period
template<typename K, typename V>
class TimeoutMap {
Expand Down

0 comments on commit 267bf0a

Please sign in to comment.