Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
abhaybd committed Sep 29, 2023
1 parent 8ce74c5 commit 0af5ff8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/utils/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ frozen::string freezeStr(const std::string& str);
* @param pair The pair to convert to a tuple.
* @return std::tuple<T, U> The converted tuple.
*/
template <typename T, typename U> std::tuple<T, U> pairToTuple(const std::pair<T, U>& pair) {
template <typename T, typename U>
std::tuple<T, U> pairToTuple(const std::pair<T, U>& pair) {
return std::tuple<T, U>(pair.first, pair.second);
}

Expand Down
6 changes: 4 additions & 2 deletions src/utils/scheduler.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ class Notifiable {
virtual void notify() = 0;
};

template <typename T> void notifyScheduler(T& scheduler);
template <typename T>
void notifyScheduler(T& scheduler);
} // namespace impl

/**
Expand Down Expand Up @@ -280,7 +281,8 @@ namespace impl {
*
* @warning Client code should NOT use this.
*/
template <typename T> void notifyScheduler(T& scheduler) {
template <typename T>
void notifyScheduler(T& scheduler) {
Notifiable& n = scheduler;
n.notify();
}
Expand Down

0 comments on commit 0af5ff8

Please sign in to comment.