title: how do I copy a rapidjson::value?
body: <p>I'm trying to copy a rapidjson::value into a class member.</p>
  
  <pre><code>error: ‘rapidjson::GenericValue&lt;Encoding, &lt;template-parameter-1-2&gt; &gt;::GenericValue(const rapidjson::GenericValue&lt;Encoding, &lt;template-parameter-1-2&gt; &gt;&amp;) [with Encoding = rapidjson::UTF8&lt;char&gt;; Allocator = rapidjson::MemoryPoolAllocator&lt;rapidjson::CrtAllocator&gt;]’ is private
  </code></pre>
  
  <p>simply for execution the folowing line:  </p>
  
  <pre><code>void setData(const rapidjson::Value json) {
      this-&gt;json =  json;
  
  }
  </code></pre>
  
  <p>Any idea how I can simply copy a rapidjson object into a class member, so it can be parsed later?</p>