Rapidjson output to string not working
<p>I am trying to use rapidjson to output itself to a string to save to a database, using the following code :</p>

<pre><code>StringBuffer buffer;
Writer&lt;FileStream&gt; writer(buffer);
rest.Accept(writer);
string reststring = buffer.GetString();
</code></pre>

<p>where rest is a rapidjson::Document.</p>

<p>However I get the following error : </p>

<pre><code>no matching function for call to ‘rapidjson::Writer&lt;rapidjson::FileStream&gt;::Writer (rapidjson::StringBuffer&amp;)’.
</code></pre>

<p>which is strange because the author of rapidjson recommended this method in an answer to a previous SO question.</p>
