diff --git a/include/mimalloc.h b/include/mimalloc.h index b63150f6..38ecf122 100644 --- a/include/mimalloc.h +++ b/include/mimalloc.h @@ -368,7 +368,7 @@ mi_decl_export void* mi_new_reallocn(void* p, size_t newcount, size_t size) mi_a #if (__cplusplus >= 201103L) || (_MSC_VER > 1900) // C++11 #include // std::true_type #include // std::forward -#include // std::addressof +#include // std::addressof #endif template struct mi_stl_allocator { @@ -412,7 +412,7 @@ template struct mi_stl_allocator { const_pointer address(const_reference x) const mi_attr_noexcept { return std::addressof(x); } #else // Oversimplified implementation as presented here: - // This is also used as a fallback by libcxx, and as the sole implementation by libstdcxx, so should be good enough for us + // This is also used as a fallback by libcxx, and as the sole implementation by libstdc++, so should be good enough for us pointer address(reference x) const mi_attr_noexcept { return reinterpret_cast(&const_cast(reinterpret_cast(x))); } const_pointer address(const_reference x) const mi_attr_noexcept { return reinterpret_cast(&const_cast(reinterpret_cast(x))); } #endif