|
Boost Users : |
Subject: [Boost-users] Newbie error trying to construct an offset_ptr in a managed shared memory segment.
From: Bill Baker (bb_at_[hidden])
Date: 2019-04-03 14:38:12
_dataBuffer = _sharedMemorySegment.construct<byte>(DataBufferName)[DataBufferSize](0);_dataBufferFree = _sharedMemorySegment.construct<size_t>(DataBufferFreeName)(DataBufferSize);_dataBufferInPointer = _sharedMemorySegment.construct<byte_offset_t >(DataBufferInName)(0);
Severity Code Description Project File Line Suppression StateError C2664 'boost::interprocess::offset_ptr<byte,ptrdiff_t,uintptr_t,0>::offset_ptr(const boost::interprocess::offset_ptr<byte,ptrdiff_t,uintptr_t,0> &) noexcept': cannot convert argument 1 from 'T' to 'unsigned char *' EncodingService c:\program files\boost\boost_1_67_0\boost_1_69_0\boost\interprocess\detail\named_proxy.hpp 85
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net