Exclude SharedArray::SharedArrayHeader from the C++ docs

This commit is contained in:
Simon Hausmann 2020-09-11 18:35:27 +02:00
parent 29a9bd05eb
commit 0dc81895ed
2 changed files with 5 additions and 1 deletions

View file

@ -71,6 +71,7 @@ private:
}
}
#if !defined(DOXYGEN)
// Unfortunately, this cannot be generated by cbindgen because std::atomic is not understood
struct SharedArrayHeader {
std::atomic<std::intptr_t> refcount;
@ -79,5 +80,6 @@ private:
};
static_assert(alignof(T) <= alignof(SharedArrayHeader), "Not yet supported because we would need to add padding");
SharedArrayHeader *inner;
#endif
};
}