Thanks for the quick reply. I tested it with the master and develop branch. In both cases i get the error.
PolyVoxMapper is my project i created to play around with the PolyVox library.
In case that helps, here is the complete build output:
Quote:
1>------ Build started: Project: PolyVoxMapper, Configuration: Release Win32 ------
1> PolyVoxMapper.cpp
1>X:\projects\apps\Worlds\3rdParty\polyvox\library\PolyVoxCore\include\PolyVoxCore/CubicSurfaceExtractor.inl(210): warning C4244: 'argument' : conversion from 'uint32_t' to 'float', possible loss of data
1> X:\projects\apps\Worlds\3rdParty\polyvox\library\PolyVoxCore\include\PolyVoxCore/CubicSurfaceExtractor.inl(202) : while compiling class template member function 'int32_t PolyVox::CubicSurfaceExtractor<VolumeType>::addVertex(uint32_t,uint32_t,uint32_t,uint32_t,PolyVox::Array<noOfDims,ElementType> &)'
1> with
1> [
1> VolumeType=PolyVox::SimpleVolume<PolyVox::Material16>,
1> noOfDims=3,
1> ElementType=PolyVox::CubicSurfaceExtractor<PolyVox::SimpleVolume<PolyVox::Material16>>::IndexAndMaterial
1> ]
1> X:\projects\apps\Worlds\3rdParty\polyvox\library\PolyVoxCore\include\PolyVoxCore/CubicSurfaceExtractor.inl(97) : see reference to function template instantiation 'int32_t PolyVox::CubicSurfaceExtractor<VolumeType>::addVertex(uint32_t,uint32_t,uint32_t,uint32_t,PolyVox::Array<noOfDims,ElementType> &)' being compiled
1> with
1> [
1> VolumeType=PolyVox::SimpleVolume<PolyVox::Material16>,
1> noOfDims=3,
1> ElementType=PolyVox::CubicSurfaceExtractor<PolyVox::SimpleVolume<PolyVox::Material16>>::IndexAndMaterial
1> ]
1> X:\projects\apps\Worlds\3rdParty\polyvox\library\PolyVoxCore\include\PolyVoxCore/CubicSurfaceExtractor.inl(38) : while compiling class template member function 'PolyVox::CubicSurfaceExtractor<VolumeType>::CubicSurfaceExtractor(VolumeType *,PolyVox::Region,PolyVox::SurfaceMesh<VertexType> *,PolyVox::WrapMode,PolyVox::Material<Type>,bool,IsQuadNeeded)'
1> with
1> [
1> VolumeType=PolyVox::SimpleVolume<PolyVox::Material16>,
1> VertexType=PolyVox::PositionMaterial,
1> Type=uint16_t,
1> IsQuadNeeded=PolyVox::DefaultIsQuadNeeded<PolyVox::Material<uint16_t>>
1> ]
1> PolyVoxMapper.cpp(45) : see reference to function template instantiation 'PolyVox::CubicSurfaceExtractor<VolumeType>::CubicSurfaceExtractor(VolumeType *,PolyVox::Region,PolyVox::SurfaceMesh<VertexType> *,PolyVox::WrapMode,PolyVox::Material<Type>,bool,IsQuadNeeded)' being compiled
1> with
1> [
1> VolumeType=PolyVox::SimpleVolume<PolyVox::Material16>,
1> VertexType=PolyVox::PositionMaterial,
1> Type=uint16_t,
1> IsQuadNeeded=PolyVox::DefaultIsQuadNeeded<PolyVox::Material<uint16_t>>
1> ]
1> PolyVoxMapper.cpp(45) : see reference to class template instantiation 'PolyVox::CubicSurfaceExtractor<VolumeType>' being compiled
1> with
1> [
1> VolumeType=PolyVox::SimpleVolume<PolyVox::Material16>
1> ]
1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\xrefwrap(431): error C2064: term does not evaluate to a function taking 2 arguments
1> C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\functional(239) : see reference to function template instantiation '_Ret std::_Callable_obj<_Ty>::_ApplyX<_Rx,const PolyVox::ConstVolumeProxy<VoxelType>&,const PolyVox::Region&>(_V0_t,_V1_t)' being compiled
1> with
1> [
1> _Ret=void,
1> _Ty=int,
1> _Rx=void,
1> VoxelType=PolyVox::Material<uint16_t>,
1> _V0_t=const PolyVox::ConstVolumeProxy<PolyVox::Material<uint16_t>> &,
1> _V1_t=const PolyVox::Region &
1> ]
1> C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\functional(239) : see reference to function template instantiation '_Ret std::_Callable_obj<_Ty>::_ApplyX<_Rx,const PolyVox::ConstVolumeProxy<VoxelType>&,const PolyVox::Region&>(_V0_t,_V1_t)' being compiled
1> with
1> [
1> _Ret=void,
1> _Ty=int,
1> _Rx=void,
1> VoxelType=PolyVox::Material<uint16_t>,
1> _V0_t=const PolyVox::ConstVolumeProxy<PolyVox::Material<uint16_t>> &,
1> _V1_t=const PolyVox::Region &
1> ]
1> C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\functional(239) : while compiling class template member function 'void std::_Func_impl<_Callable,_Alloc,_Rx,_V0_t,_V1_t>::_Do_call(_V0_t,_V1_t)'
1> with
1> [
1> _Callable=_MyWrapper,
1> _Alloc=std::allocator<std::_Func_class<void,const PolyVox::ConstVolumeProxy<PolyVox::Material<uint16_t>> ,const PolyVox::Region &>>,
1> _Rx=void,
1> _V0_t=const PolyVox::ConstVolumeProxy<PolyVox::Material<uint16_t>> ,
1> _V1_t=const PolyVox::Region &
1> ]
1> C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\functional(516) : see reference to class template instantiation 'std::_Func_impl<_Callable,_Alloc,_Rx,_V0_t,_V1_t>' being compiled
1> with
1> [
1> _Callable=_MyWrapper,
1> _Alloc=std::allocator<std::_Func_class<void,const PolyVox::ConstVolumeProxy<PolyVox::Material<uint16_t>> ,const PolyVox::Region &>>,
1> _Rx=void,
1> _V0_t=const PolyVox::ConstVolumeProxy<PolyVox::Material<uint16_t>> ,
1> _V1_t=const PolyVox::Region &
1> ]
1> C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\functional(516) : see reference to function template instantiation 'void std::_Func_class<_Ret,_V0_t,_V1_t>::_Do_alloc<_Myimpl,_Ty,_Alloc>(_Fty &&,_Alloc)' being compiled
1> with
1> [
1> _Ret=void,
1> _V0_t=const PolyVox::ConstVolumeProxy<PolyVox::Material<uint16_t>> ,
1> _V1_t=const PolyVox::Region &,
1> _Ty=int,
1> _Alloc=std::allocator<std::_Func_class<void,const PolyVox::ConstVolumeProxy<PolyVox::Material<uint16_t>> ,const PolyVox::Region &>>,
1> _Fty=int
1> ]
1> C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\functional(516) : see reference to function template instantiation 'void std::_Func_class<_Ret,_V0_t,_V1_t>::_Do_alloc<_Myimpl,_Ty,_Alloc>(_Fty &&,_Alloc)' being compiled
1> with
1> [
1> _Ret=void,
1> _V0_t=const PolyVox::ConstVolumeProxy<PolyVox::Material<uint16_t>> ,
1> _V1_t=const PolyVox::Region &,
1> _Ty=int,
1> _Alloc=std::allocator<std::_Func_class<void,const PolyVox::ConstVolumeProxy<PolyVox::Material<uint16_t>> ,const PolyVox::Region &>>,
1> _Fty=int
1> ]
1> C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\functional(516) : see reference to function template instantiation 'void std::_Func_class<_Ret,_V0_t,_V1_t>::_Reset_alloc<_Ty,std::allocator<std::_Func_class<_Ret,_V0_t,_V1_t>>>(_Fty &&,_Alloc)' being compiled
1> with
1> [
1> _Ret=void,
1> _V0_t=const PolyVox::ConstVolumeProxy<PolyVox::Material<uint16_t>> ,
1> _V1_t=const PolyVox::Region &,
1> _Ty=int,
1> _Fty=int,
1> _Alloc=std::allocator<std::_Func_class<void,const PolyVox::ConstVolumeProxy<PolyVox::Material<uint16_t>> ,const PolyVox::Region &>>
1> ]
1> C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\functional(516) : see reference to function template instantiation 'void std::_Func_class<_Ret,_V0_t,_V1_t>::_Reset_alloc<_Ty,std::allocator<std::_Func_class<_Ret,_V0_t,_V1_t>>>(_Fty &&,_Alloc)' being compiled
1> with
1> [
1> _Ret=void,
1> _V0_t=const PolyVox::ConstVolumeProxy<PolyVox::Material<uint16_t>> ,
1> _V1_t=const PolyVox::Region &,
1> _Ty=int,
1> _Fty=int,
1> _Alloc=std::allocator<std::_Func_class<void,const PolyVox::ConstVolumeProxy<PolyVox::Material<uint16_t>> ,const PolyVox::Region &>>
1> ]
1> C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\functional(675) : see reference to function template instantiation 'void std::_Func_class<_Ret,_V0_t,_V1_t>::_Reset<_Ty>(_Fty &&)' being compiled
1> with
1> [
1> _Ret=void,
1> _V0_t=const PolyVox::ConstVolumeProxy<PolyVox::Material<uint16_t>> ,
1> _V1_t=const PolyVox::Region &,
1> _Ty=int,
1> _Fty=int
1> ]
1> C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\functional(675) : see reference to function template instantiation 'void std::_Func_class<_Ret,_V0_t,_V1_t>::_Reset<_Ty>(_Fty &&)' being compiled
1> with
1> [
1> _Ret=void,
1> _V0_t=const PolyVox::ConstVolumeProxy<PolyVox::Material<uint16_t>> ,
1> _V1_t=const PolyVox::Region &,
1> _Ty=int,
1> _Fty=int
1> ]
1> X:\projects\apps\Worlds\3rdParty\polyvox\library\PolyVoxCore\include\PolyVoxCore/LargeVolume.h(258) : see reference to function template instantiation 'std::function<_Fty>::function<int>(_Fx &&)' being compiled
1> with
1> [
1> _Fty=void (const PolyVox::ConstVolumeProxy<PolyVox::Material<uint16_t>> &,const PolyVox::Region &),
1> _Fx=int
1> ]
1> PolyVoxMapper.cpp(62) : see reference to function template instantiation 'std::function<_Fty>::function<int>(_Fx &&)' being compiled
1> with
1> [
1> _Fty=void (const PolyVox::ConstVolumeProxy<PolyVox::Material<uint16_t>> &,const PolyVox::Region &),
1> _Fx=int
1> ]
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========