We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a3b81a commit 6946c91Copy full SHA for 6946c91
1 file changed
include/openPMD/auxiliary/Memory.hpp
@@ -49,8 +49,18 @@ namespace auxiliary
49
*/
50
struct WriteBuffer
51
{
52
+ /*
53
+ * Sic. Have to put the unique_ptr behind a shared_ptr because
54
+ * std::variant does not want immovable types.
55
+ */
56
using UniquePtr = std::shared_ptr<UniquePtrWithLambda<void>>;
57
using SharedPtr = std::shared_ptr<void const>;
58
59
+ * Use std::any publically since some compilers have trouble with
60
+ * certain uses of std::variant, so hide it from them.
61
+ * Look into Memory_internal.hpp for the variant type.
62
+ * https://github.com/openPMD/openPMD-api/issues/1720
63
64
std::any m_buffer;
65
66
WriteBuffer();
0 commit comments