error: no member named 'memcpy' in namespace 'std'
flgw opened this issue · comments
Flo commented
Including #include<cstring>
solves this for me.
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));
^~~~~~
Dimitri Diakopoulos commented
This should be fixed on the 2.0 branch!
jmespadero commented
You have also a bugfix to this in #12