From 7d39ee93a6d354e727c7534a18663f1d00d46b0f Mon Sep 17 00:00:00 2001 From: hachem Date: Thu, 20 Aug 2026 01:57:44 +0200 Subject: refactor: trailing return types in core --- src/core/memory.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/core/memory.h') diff --git a/src/core/memory.h b/src/core/memory.h index cbfbe82..3240c71 100644 --- a/src/core/memory.h +++ b/src/core/memory.h @@ -2,22 +2,22 @@ #include -namespace Donut +namespace Donut { template using Ref = std::shared_ptr; - template + template using Scope = std::unique_ptr; - - template - constexpr Scope create_scope(Args&& ... args) + + template + constexpr auto create_scope(Args&& ... args) -> Scope { return std::make_unique(std::forward(args)...); } - + template - constexpr Ref create_ref(Args&& ... args) + constexpr auto create_ref(Args&& ... args) -> Ref { return std::make_shared(std::forward(args)...); } -- cgit v1.3