Skip to content

Commit

Permalink
refactor(lazy): remove out of line definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed Apr 10, 2024
1 parent d2c082d commit 0425d86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
7 changes: 4 additions & 3 deletions include/rohrkabel/utils/lazy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ namespace pipewire

template <typename T, typename Function>
requires std::same_as<std::invoke_result_t<Function>, T>
lazy<T> make_lazy(Function &&);
lazy<T> make_lazy(Function &&func)
{
return std::async(std::launch::deferred, std::forward<Function>(func));
}
} // namespace pipewire

#include "lazy.inl"
13 changes: 0 additions & 13 deletions include/rohrkabel/utils/lazy.inl

This file was deleted.

0 comments on commit 0425d86

Please sign in to comment.