提升累加器尾部模板参数无效

时间:2014-02-06 13:09:42

标签: boost tail

我是使用增强累加器的新手。我使用boost网站上的示例尝试了一个简单的程序。我有一些简单的事情:

#include <boost/accumulators/accumulators.hpp>
#include <boost/accumulators/statistics/stats.hpp>
#include <boost/accumulators/statistics/tail.hpp>
include <boost/accumulators/statistics/tail_quantile.hpp>
using namespace boost::accumulators;

typedef accumulator_set<double, stats<tag::tail_quantile<right> > > accumulator_t_right;
typedef accumulator_set<double, stats<tag::tail_quantile<left> > > accumulator_t_left;

accumulator_t_right acc0( tag::tail<right>::cache_size = 1000 );
accumulator_t_right acc1( tag::tail<right>::cache_size = 1000 );
accumulator_t_left  acc2( tag::tail<left>::cache_size = 1000 );
accumulator_t_left  acc3( tag::tail<left>::cache_size = 1000 );

我遇到了:

/usr/local/src/freeswitch/src/mod/applications/mod_soundtouch/mod_soundtouch.cpp:56:63:错误:模板参数1无效 /usr/local/src/freeswitch/src/mod/applications/mod_soundtouch/mod_soundtouch.cpp:56:65:错误:模板参数1无效 /usr/local/src/freeswitch/src/mod/applications/mod_soundtouch/mod_soundtouch.cpp:56:67:错误:模板参数2无效 /usr/local/src/freeswitch/src/mod/applications/mod_soundtouch/mod_soundtouch.cpp:56:88:错误:';'之前的声明中的无效类型代币 /usr/local/src/freeswitch/src/mod/applications/mod_soundtouch/mod_soundtouch.cpp:57:62:错误:模板参数1无效 /usr/local/src/freeswitch/src/mod/applications/mod_soundtouch/mod_soundtouch.cpp:57:64:错误:模板参数1无效 /usr/local/src/freeswitch/src/mod/applications/mod_soundtouch/mod_soundtouch.cpp:57:66:错误:模板参数2无效 /usr/local/src/freeswitch/src/mod/applications/mod_soundtouch/mod_soundtouch.cpp:57:86:错误:';'之前的声明中的类型无效代币 /usr/local/src/freeswitch/src/mod/applications/mod_soundtouch/mod_soundtouch.cpp:59:42:错误:模板参数1无效 /usr/local/src/freeswitch/src/mod/applications/mod_soundtouch/mod_soundtouch.cpp:59:56:错误:在'='标记之前预期的unqualified-id /usr/local/src/freeswitch/src/mod/applications/mod_soundtouch/mod_soundtouch.cpp:60:42:错误:模板参数1无效 /usr/local/src/freeswitch/src/mod/applications/mod_soundtouch/mod_soundtouch.cpp:60:56:错误:在'='之前预期的unqualified-id /usr/local/src/freeswitch/src/mod/applications/mod_soundtouch/mod_soundtouch.cpp:61:41:错误:模板参数1无效 /usr/local/src/freeswitch/src/mod/applications/mod_soundtouch/mod_soundtouch.cpp:61:55:错误:在'='之前预期的unqualified-id /usr/local/src/freeswitch/src/mod/applications/mod_soundtouch/mod_soundtouch.cpp:62:41:错误:模板参数1无效 /usr/local/src/freeswitch/src/mod/applications/mod_soundtouch/mod_soundtouch.cpp:62:55:错误:在'='标记之前预期的unqualified-id

我是否需要为左右参数使用特定的命名空间?这些定义在哪里?或者是其他错误。

非常感谢任何帮助。提前谢谢。

此致

乔恩

0 个答案:

没有答案