ddiakopoulos / tinyply

:earth_africa: C++11 ply 3d mesh format importer & exporter
615 stars 119 forks source link

error: no member named 'memcpy' in namespace 'std' #14

Closed flgw closed 6 years ago

flgw commented 7 years ago

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));
                          ^~~~~~
ddiakopoulos commented 7 years ago

This should be fixed on the 2.0 branch!

jmespadero commented 6 years ago

You have also a bugfix to this in #12