aboutsummaryrefslogtreecommitdiffstats
path: root/common/almalloc.h
diff options
context:
space:
mode:
authorDeal <[email protected]>2023-09-26 06:55:58 +0800
committerGitHub <[email protected]>2023-09-25 22:55:58 +0000
commitf4eb9282e52fa7d072fadf5ec1edc5d2d05ec4e8 (patch)
treecdfee8552ce05c8941d611dfc82c0d6e81b4e78a /common/almalloc.h
parent4fb1c23ca3679cc8e9840ebcab975176bd034ab4 (diff)
Compile with c++20 support (#920)
* Compile with c++20 support * Update CMakeLists.txt
Diffstat (limited to 'common/almalloc.h')
-rw-r--r--common/almalloc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/almalloc.h b/common/almalloc.h
index bd2e085b..873473ca 100644
--- a/common/almalloc.h
+++ b/common/almalloc.h
@@ -117,7 +117,9 @@ constexpr T *to_address(T *p) noexcept
template<typename T>
constexpr auto to_address(const T &p) noexcept
-{ return to_address(p.operator->()); }
+{
+ return ::al::to_address(p.operator->());
+}
template<typename T, typename ...Args>