<div dir="ltr"><div>Hi Even,</div><div><br></div><div>Trying to get caught up going through patches.  A comment for this one:</div><div><br></div><div><a href="https://github.com/OSGeo/gdal/blob/f7c27a807b27cf74cf4666ffe3df4d64cc3f47b3/gdal/frmts/gtiff/geotiff.cpp">https://github.com/OSGeo/gdal/blob/f7c27a807b27cf74cf4666ffe3df4d64cc3f47b3/gdal/frmts/gtiff/geotiff.cpp</a><br></div><div><br></div><div>You can size and initialize a vector in the constructor.  With this code:</div><div><br></div><div><div>    std::vector<bool> abRequireNewOverview;</div><div>    abRequireNewOverview.resize(nOverviews);</div><div>    for( int i = 0; i < nOverviews && eErr == CE_None; ++i )</div><div>    {</div><div>        abRequireNewOverview[i] = true;</div></div><div><br></div><div>The vector can be setup all at one go...</div><div><br></div><div>    <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">std::vector<bool> abRequireNewOverview(<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">nOverviews, true</span>);</span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">See <a href="http://en.cppreference.com/w/cpp/container/vector/vector">http://en.cppreference.com/w/cpp/container/vector/vector</a>  The alloc will be set to the default.</span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div><span style="text-align:start;text-indent:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><div>     vector( size_type count, </div><div>                 const T& value,</div><div>                 const Allocator& alloc = Allocator());</div><div><br></div><div>As for vector<bool>'s sadness, I am not really liking std::bitset for here, so as long as we are careful, we can use it as long as we are careful not hit its sharp edges.</div></span></div><div class="gmail_signature"></div>
</div>