title: Adding a BSON Array to a MongoDB 3.2 document and extracting the values back ( MongoCXX 3.2 ) ( C++ 11)
body: <pre><code>    // The document I want to add data to and extract it back from c++
             bsoncxx::builder::stream::document data_builder,
  
             // I want to try and save this array in my document , as I want to  populate it later
             bsoncxx::builder::stream::array mybsonarr;
             for(float i = 0 ; i &lt; 5 ; i = i + 0.1f){
               mybsonarr &lt;&lt; i;
             }
  
  
  // Now this line Throws an error 
  data_builder &lt;&lt; "_id" &lt;&lt; 5 &lt;&lt; "my_array" &lt;&lt; &amp;mybsonarr;
  </code></pre>
  
  <p>So how can I add my array and also how can I read back my float array to either and array or vector ?</p>