2010-06-03 41 views
0

HI全部累加器不编译

我正在使用增压累加器。

这两行用于在LInux中使用当前版本的boost来正常工作。

 
accumulator_set< double, stats< tag::covariance<double, tag::covariate1> > > 
acc_cov; 
accumulator_set< double, stats<tag::variance> > acc_var; 

当我移动到它安装升压V1.40 在Sun的机器我有这样的建筑误差

 
"/opt/boost/boost/accumulators/framework/depends_on.hpp", line 276: 
Error:<no tag> cannot be initialized in a constructor. 
"/opt/boost/boost/fusion/container/list/cons.hpp", line 85: Where: While 
instantiating "boost::accumulators::detail::accumulator_wrapper<int, 
int>::accumulator_wrapper(const 
boost::accumulators::detail::accumulator_wrapper<int, int>&)". 
"/opt/boost/boost/fusion/container/list/cons.hpp", line 85: Where: 
Instantiated from non-template code. 
1 Error(s) 

你知道我可以修复这些错误,为什么我有这个问题?

感谢 AFG

回答

0

你使用Boost的在两台机器上相同的版本?

另外,Sun和x86机器完全不同,所以您可能会遇到问题。

+0

不,他们有不同的版本。 你知道如何解决这个问题吗? – 2010-06-03 15:01:52