libnop
libnop copied to clipboard
visual studio 2022 c++17
nop\base\array.h(192,18): error C2665: “nop::StreamWriterstd::stringstream::Write”:
template <typename Writer>
static constexpr 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();