DevShiftTeam / AppShift-MemoryPool

A very fast cross-platform memory pool mechanism for C++ built using a data-oriented approach (3 to 24 times faster than regular new or delete, depending on operating system & compiler)
Apache License 2.0
215 stars 25 forks source link

Ubuntu 20.04 compile Error #3

Closed MyraBaba closed 3 years ago

MyraBaba commented 3 years ago

Hi,

I succesfully tested on the Mac os X but ubuntu gives below error:

/home/alp2080/Projects/CPPShift-MemoryPool/MemoryPool.cpp: In static member function ‘static void CPPShift::Memory::MemoryPoolManager::reallocate(void, size_t)’: /home/alp2080/Projects/CPPShift-MemoryPool/MemoryPool.cpp:133:7: error: ‘memcpy’ is not a member of ‘std’ std::memcpy(temp_point, unit_pointer_start, unit->length); ^~ /home/alp2080/Projects/CPPShift-MemoryPool/MemoryPool.cpp:133:7: note: suggested alternative: ‘empty’ std::memcpy(temp_point, unit_pointer_start, unit->length); ^~ empty make[2]: [CMakeFiles/MemoryPool.dir/build.make:76: CMakeFiles/MemoryPool.dir/MemoryPool.cpp.o] Error 1 make[1]: [CMakeFiles/Makefile2:76: CMakeFiles/MemoryPool.dir/all] Error 2 make: *** [Makefile:84: all] Error 2