aboutsummaryrefslogtreecommitdiff
path: root/libcutl/shared-ptr
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-06-23 09:38:36 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-06-23 09:38:36 +0200
commitab4705a5992a808b4567fc4c26147184ed4dd73c (patch)
treebd4c9513e029037a4281cecc54c9155b03112b80 /libcutl/shared-ptr
parenteb3f9c312d1c50e9b2f9ef9a049e01075f1d7c4d (diff)
Release version 1.11.0-b.9+1v1.11.0-b.9+1
Disable dodgy part of shared_ptr test that now causes segfault with Clang 16 on Mac OS and Windows.
Diffstat (limited to 'libcutl/shared-ptr')
-rw-r--r--libcutl/shared-ptr/base.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcutl/shared-ptr/base.cxx b/libcutl/shared-ptr/base.cxx
index a3bc774..10e998f 100644
--- a/libcutl/shared-ptr/base.cxx
+++ b/libcutl/shared-ptr/base.cxx
@@ -33,6 +33,8 @@ operator new (size_t n, cutl::share s)
// of this platform. Twice the pointer size is a good guess for
// most platforms.
//
+ // @@ Need to redo this properly using alignof(std::max_align_t).
+ //
size_t* p = static_cast<size_t*> (operator new (n + 2 * sizeof (size_t)));
*p++ = 1; // Initial count.
*p++ = 0xDEADBEEF; // Signature.