Just got back from the codesprint at Islandwood. One thing we found out is that you could not build under windows. We've got a work around checked into include/pdal/filters/Stats.hpp but that's not fixing the problem.<div>
<br></div><div>I'm re-posting here in the hopes that someone (Mateuz?) could offer some insight into this:</div><div><br></div><div><a href="https://svn.boost.org/trac/boost/ticket/6535">https://svn.boost.org/trac/boost/ticket/6535</a>
</div><div><br></div><div><p style="font-family:Verdana,Arial,'Bitstream Vera Sans',Helvetica,sans-serif;font-size:13px;background-color:rgb(255,255,221)">We are using Boost 1.48.0 and found a compilation failure on Windows using VS 2010. The project builds properly on Linux and OSX. I've provided a concise repro below. In short</p>
<ul style="font-family:Verdana,Arial,'Bitstream Vera Sans',Helvetica,sans-serif;font-size:13px;background-color:rgb(255,255,221)"><li>a plain density accumulator is OK</li><li>a droppable density accumulator fails to compile (missing operator)</li>
<li>a droppable sum accumulator is OK.</li></ul><pre class="wiki" style="background-image:initial;background-color:rgb(255,255,221);border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:rgb(215,215,215);border-right-color:rgb(215,215,215);border-bottom-color:rgb(215,215,215);border-left-color:rgb(215,215,215);margin-right:1.75em;margin-left:1.75em;padding-top:0.25em;padding-right:0.25em;padding-bottom:0.25em;padding-left:0.25em;overflow-x:auto;overflow-y:auto;font-size:13px">
#include <boost/accumulators/accumulators.hpp>
#include <boost/accumulators/statistics/density.hpp>
#include <boost/accumulators/statistics/stats.hpp>
#include <boost/accumulators/statistics/sum.hpp>
using namespace boost;
using namespace accumulators;
// OK. Plain density accumulator. Compiles fine on VStudio 2010, boost v1.48.0
//typedef accumulator_set<double, features<tag::density> > DensityAcc;
// NG. Droppable density accumulator causes "error C2676: binary '[' : 'const boost::accumulators::droppable_accumulator<Accumulator>' does not define this operator or a conversion to a type acceptable to the predefined operator"
typedef accumulator_set<double, features< droppable<tag::density>> > DensityAcc;
// OK. Droppable sum accumulator seems OK.
// typedef accumulator_set<double, features< droppable<tag::sum>> > SumAcc;
int main()
{
DensityAcc myAccumulator( tag::density::num_bins = 20, tag::density::cache_size = 10);
//SumAcc myAccumulator;
return 0;
}</pre></div>