summaryrefslogtreecommitdiff
path: root/asl/ptr.hpp
diff options
context:
space:
mode:
authorSteven Le Rouzic <steven.lerouzic@gmail.com>2024-08-15 23:35:01 +0200
committerSteven Le Rouzic <steven.lerouzic@gmail.com>2024-08-15 23:35:01 +0200
commit4ad4091b38faa39ddd2deae7455bd3a26531994f (patch)
tree689496332edb2210ed1500c64f9bcdb2c3926f78 /asl/ptr.hpp
parent03e5d14ed191a5a600c7b9f6c33bb2b12fdd5eac (diff)
Some work on object & init-related traits
Diffstat (limited to 'asl/ptr.hpp')
-rw-r--r--asl/ptr.hpp2
1 files changed, 2 insertions, 0 deletions
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<is_object T>