summaryrefslogtreecommitdiff
path: root/asl/ptr.hpp
diff options
context:
space:
mode:
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>