From 4ad4091b38faa39ddd2deae7455bd3a26531994f Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Thu, 15 Aug 2024 23:35:01 +0200 Subject: Some work on object & init-related traits --- asl/ptr.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'asl/ptr.hpp') diff --git a/asl/ptr.hpp b/asl/ptr.hpp index 70dfa7b..1da3f4e 100644 --- a/asl/ptr.hpp +++ b/asl/ptr.hpp @@ -6,6 +6,8 @@ namespace asl { +constexpr auto addr(auto&& ref) { return __builtin_addressof(ref); } + namespace ptr_internal { template -- cgit