tinyply.cpp:378:26: error: no member named 'memcpy' in namespace 'std' [clang-diagnostic-error]
std::memcpy(listSize, &p.listCount, sizeof(uint32_t));
^
tinyply.cpp: In member function ‘void tinyply::PlyFile::PlyFileImpl::write_binary_internal(std::ostream&)’:
tinyply.cpp:378:26: error: ‘memcpy’ is not a member of ‘std’
std::memcpy(listSize, &p.listCount, sizeof(uint32_t));
^~~~~~
tinyply.cpp:378:26: note: suggested alternative: ‘mem_fn’
std::memcpy(listSize, &p.listCount, sizeof(uint32_t));
^~~~~~
Including
#include<cstring>
solves this for me.