auto s = fxMessageResponse.SerializeAsString(); //this returns std::string
std::vector<const int8_t> bytes(s.size());
std::copy( s.begin(), s.end(), std::back_inserter(bytes));
This is giving the famous lots of errors like
/home/lz/Android/Sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:1699:31: error: cannot initialize a parameter of type 'void *' with an lvalue of type 'const signed char *'
_VSTD::memcpy(__end2, __begin1, _Np * sizeof(_Tp));
As far as I know, int8_t
and char
are the same for Armv8a. Why do I get this error?