Skip to content

Commit

Permalink
Reordered a declaration to avoid a problem with clang in C++23 mode
Browse files Browse the repository at this point in the history
  • Loading branch information
julianstorer committed Oct 26, 2024
1 parent a8f948d commit f134e46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gui/choc_MessageLoop.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ namespace choc::messageloop

/// Stops and clears the timer. (You can also clear a Timer
/// by assigning an empty Timer to it).
void clear() { pimpl.reset(); }
void clear();

/// Returns true if the Timer has been initialised with
/// a callback, or false if it's just an empty object.
Expand Down Expand Up @@ -552,6 +552,8 @@ void setTimeout (uint32_t intervalMillisecs, Callback&& callback)
});
}

inline void Timer::clear() { pimpl.reset(); }

} // namespace choc::messageloop


Expand Down

0 comments on commit f134e46

Please sign in to comment.