openEMS icon indicating copy to clipboard operation
openEMS copied to clipboard

Fix build error on MSVC in allocator.

Open dsa-t opened this issue 1 year ago • 0 comments

The error message was:

...\openEMS\tools\arraylib\impl\allocator.h(70,9): error C2440: '=': cannot convert from 'void *' to 'T *' [...\build\openEMS-prefix\src\openEMS-build\openEMS.vcxproj] [...\build\openEMS.vcxproj]
...\openEMS\tools\arraylib\impl\allocator.h(70,9): error C2440: with [...\build\openEMS-prefix\src\openEMS-build\openEMS.vcxproj] [...\build\openEMS.vcxproj]
...\openEMS\tools\arraylib\impl\allocator.h(70,9): error C2440: [ [...\build\openEMS-prefix\src\openEMS-build\openEMS.vcxproj] [...\build\openEMS.vcxproj]
...\openEMS\tools\arraylib\impl\allocator.h(70,9): error C2440: T=float [...\build\openEMS-prefix\src\openEMS-build\openEMS.vcxproj] [...\build\openEMS.vcxproj]
...\openEMS\tools\arraylib\impl\allocator.h(70,9): error C2440: ] [...\build\openEMS-prefix\src\openEMS-build\openEMS.vcxproj] [...\build\openEMS.vcxproj]

dsa-t avatar Feb 22 '25 10:02 dsa-t