aboutsummaryrefslogtreecommitdiff
path: root/src/cru_debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cru_debug.h')
-rw-r--r--src/cru_debug.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cru_debug.h b/src/cru_debug.h
index a9800774..c750e11f 100644
--- a/src/cru_debug.h
+++ b/src/cru_debug.h
@@ -30,13 +30,13 @@ namespace cru::debug
return std::move(result);
}
#else
- inline void DebugTime(Function<void()>&& action, const StringView& hint_message)
+ inline void DebugTime(const std::function<void()>& action, const StringView& hint_message)
{
action();
}
template<typename TReturn>
- TReturn DebugTime(Function<TReturn()>&& action, const StringView& hint_message)
+ TReturn DebugTime(const std::function<TReturn()>& action, const StringView& hint_message)
{
return action();
}