We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e3f776 commit 0e1cc3dCopy full SHA for 0e1cc3d
include/cxx.h
@@ -180,6 +180,10 @@ class Slice final
180
void swap(Slice &) noexcept;
181
182
private:
183
+ friend void sliceInit(void *, const void *, std::size_t) noexcept;
184
+ friend void *slicePtr(const void *) noexcept;
185
+ friend std::size_t sliceLen(const void *) noexcept;
186
+
187
std::array<std::uintptr_t, 2> repr;
188
};
189
@@ -485,10 +489,6 @@ constexpr unsafe_bitcopy_t unsafe_bitcopy{};
485
489
486
490
#ifndef CXXBRIDGE1_RUST_SLICE
487
491
#define CXXBRIDGE1_RUST_SLICE
488
-void sliceInit(void *, const void *, std::size_t) noexcept;
-void *slicePtr(const void *) noexcept;
-std::size_t sliceLen(const void *) noexcept;
-
492
template <typename T>
493
Slice<T>::Slice() noexcept {
494
sliceInit(this, reinterpret_cast<void *>(align_of<T>()), 0);
0 commit comments