Compilation fails
When building FlowVR, I get the following error:
In file included from flowvr/flowvr-base/include/flowvr/mem/sharedmemorymanager.h:41,
from flowvr/flowvr-base/include/flowvr/mem/daemonsharedmemorymanager.h:39,
from flowvr/flowvr-base/src/mem/daemonsharedmemorymanager.cpp:36:
flowvr/flowvr-base/include/flowvr/mem/MPkMTvSparseVector.h: In member function ‘flowvr::mem::MPkMTvSparseVector<Tkey, Tval>::operator const flowvr::Buffer&() const’:
flowvr/flowvr-base/include/flowvr/mem/MPkMTvSparseVector.h:195:91: error: invalid static_cast from type ‘flowvr::BufferWrite* const’ to type ‘const flowvr::Buffer*’
operator const Buffer& () const { return * static_cast< const flowvr::Buffer* >( _mpBuf ); }
Indeed, BufferWrite
seems to only be forward-declared in this file. Including flowvr/buffer.h
solves the issue.