I'm using socket.io-clientpp, https://github.com/ebshimizu/socket.io-clientpp, which uses rapidjson.
When a event is received, my function is called :
void data_published(socketio::socketio_events&, const Value& v) {
Value is a rapidjson value. My problem is that the only way I see to stringify it is with Document class. But to put the Value in a Document, all functions take a non-const reference, for example :
GenericValue& AddMember(const Ch* name, GenericValue& value, Allocator& allocator) {
I'm used to jsonpp, I'm missing something silly I guess. The question is simple : how to stringify a const rapidjson Value ?