Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

visual studio 2022 c++17 #30

Open
stevezhou6 opened this issue Jun 5, 2024 · 0 comments
Open

visual studio 2022 c++17 #30

stevezhou6 opened this issue Jun 5, 2024 · 0 comments

Comments

@stevezhou6
Copy link

nop\base\array.h(192,18): error C2665: “nop::StreamWriterstd::stringstream::Write”:

template
static constexpr Status WritePayload(EncodingByte /prefix/,
const Type& value,
Writer* writer) {
auto status = Encoding::Write(Length * sizeof(T), writer);
if (!status)
return status;

return writer->Write(value.begin(), value.end());

}

simple_protocol.cpp

// Construct a serializer to output to a std::stringstream.
Serializer<StreamWriter<std::stringstream>> serializer;

// Write a message to the stream using the first overload of WriteMessage.
WriteMessage(&serializer, 1, 2, 3, 4) || Die();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant