Skip to content

Compilation issue with private copy operator in XnDeviceSensorV2/XnServerSensorInvoker.h #10

@jeadorf

Description

@jeadorf

Hi,

when compiling the snapshot at fc51d0a
for Linux, I get the following compilation error when running ./RedistMaker in the Platform/Linux/CreateRedist directory:

g++ -MD -MP -MT "./x64-Release/XnServerSession.d x64-Release/XnServerSession.o" -c -msse3 -O2 -DNDEBUG -I/usr/include/ni -I../../../../Include -I../../../../Source -I../../../../Source/XnCommon -DXN_DEVICE_EXPORTS -fPIC -fvisibility=hidden -o x64-Release/XnServerSession.o ../../../../Source/XnDeviceSensorV2/XnServerSession.cpp
In file included from /usr/include/ni/XnOS.h:29:0,
from /usr/include/ni/XnTypes.h:29,
from ../../../../Include/XnStreamFormats.h:29,
from ../../../../Include/XnStreamParams.h:28,
from ../../../../Include/XnDDK.h:28,
from ../../../../Include/XnDevice.h:30,
from ../../../../Source/XnDDK/IXnDevice.h:28,
from ../../../../Source/XnDDK/XnDeviceBase.h:28,
from ../../../../Source/XnDeviceSensorV2/XnSensor.h:28,
from ../../../../Source/XnDeviceSensorV2/XnServerSensorInvoker.h:28,
from ../../../../Source/XnDeviceSensorV2/XnSensorsManager.h:28,
from ../../../../Source/XnDeviceSensorV2/XnServerSession.h:28,
from ../../../../Source/XnDeviceSensorV2/XnServerSession.cpp:25:
../../../../Source/XnDeviceSensorV2/XnServerSensorInvoker.h: In member function ‘XnServerSensorInvoker::XnLockedServerStreamsHash& XnServerSensorInvoker::XnLockedServerStreamsHash::operator=(const XnServerSensorInvoker::XnLockedServerStreamsHash&)’:
/usr/include/ni/XnMacros.h:121:7: error: ‘void XnServerSensorInvoker::_XnServerStreamsHash::operator=(const XnServerSensorInvoker::_XnServerStreamsHash&)’ is private
void operator=(const TypeName&);
^
/usr/include/ni/XnHash.h:966:3: note: in expansion of macro ‘XN_DISABLE_COPY_AND_ASSIGN’
XN_DISABLE_COPY_AND_ASSIGN(ClassName);
^
/usr/include/ni/XnStringsHash.h:91:2: note: in expansion of macro ‘XN_DECLARE_HASH_DECL’
XN_DECLARE_HASH_DECL(decl, const XnChar*, ValueType, ClassName, XnStringsKeyTranslator, ValueTranslator, XnStringsKeyManager)
^
/usr/include/ni/XnStringsHash.h:106:2: note: in expansion of macro ‘XN_DECLARE_STRINGS_HASH_WITH_TRANSLATOR_DECL’
XN_DECLARE_STRINGS_HASH_WITH_TRANSLATOR_DECL(decl, ValueType, ClassName, XN_DEFAULT_TRANSLATOR_NAME(ClassName))
^
/usr/include/ni/XnStringsHash.h:113:2: note: in expansion of macro ‘XN_DECLARE_STRINGS_HASH_DECL’
XN_DECLARE_STRINGS_HASH_DECL(, ValueType, ClassName)
^
../../../../Source/XnDeviceSensorV2/XnServerSensorInvoker.h:94:2: note: in expansion of macro ‘XN_DECLARE_STRINGS_HASH’
XN_DECLARE_STRINGS_HASH(SensorInvokerStream, _XnServerStreamsHash);
^
In file included from ../../../../Source/XnDeviceSensorV2/XnSensorsManager.h:28:0,
from ../../../../Source/XnDeviceSensorV2/XnServerSession.h:28,
from ../../../../Source/XnDeviceSensorV2/XnServerSession.cpp:25:
../../../../Source/XnDeviceSensorV2/XnServerSensorInvoker.h:108:17: error: within this context
this->m_hash = other.m_hash;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions