libnop icon indicating copy to clipboard operation
libnop copied to clipboard

visual studio 2022 c++17

Open stevezhou6 opened this issue 1 year ago • 0 comments

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

template <typename Writer> static constexpr Status WritePayload(EncodingByte /prefix/, const Type& value, Writer* writer) { auto status = Encoding<SizeType>::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();

stevezhou6 avatar Jun 05 '24 05:06 stevezhou6