ddiakopoulos / tinyply

:earth_africa: C++11 ply 3d mesh format importer & exporter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

flgw opened this issue · comments

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));
                          ^~~~~~

This should be fixed on the 2.0 branch!

You have also a bugfix to this in #12