The compiler complains about passing the wrong type to memcpy() (passing const char * as the first argument) deep inside Emboss internal template code, which is not clear to an end user.
Using std::enable_if<... backing storage is writeable> on Write() would help. Ideally, we could coerce the C++ compiler to emit a message saying to use the ...Writer type alias instead of ...View.
The compiler complains about passing the wrong type to
memcpy()
(passingconst char *
as the first argument) deep inside Emboss internal template code, which is not clear to an end user.Using
std::enable_if<... backing storage is writeable>
onWrite()
would help. Ideally, we could coerce the C++ compiler to emit a message saying to use the...Writer
type alias instead of...View
.