Skip to content

Commit bce598d

Browse files
rolandlichtersjenkins
authored andcommitted
include only a subset of boost statistics headers to avoid swig errors
1 parent 63c832f commit bce598d

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

OREAnalytics/orea/engine/historicalsensipnlcalculator.hpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,15 @@
3232
#include <ql/shared_ptr.hpp>
3333

3434
#include <boost/accumulators/accumulators.hpp>
35-
#include <boost/accumulators/statistics.hpp>
35+
//#include <boost/accumulators/statistics.hpp>
36+
// Including <boost/accumulators/statistics.hpp> causes the following swig wrapper compiler errors
37+
// explicit specialization of 'boost::accumulators::feature_of<boost::accumulators::tag::weighted_skewness>'
38+
// explicit specialization of 'boost::accumulators::feature_of<boost::accumulators::tag::weighted_kurtosis>'
39+
// The following subset of includes is sufficient here and circumvents the swig errors
40+
#include <boost/accumulators/statistics/stats.hpp>
41+
#include <boost/accumulators/statistics/variance.hpp>
42+
#include <boost/accumulators/statistics/covariance.hpp>
43+
#include <boost/accumulators/statistics/variates/covariate.hpp>
3644

3745
namespace ore {
3846
namespace analytics {

0 commit comments

Comments
 (0)