Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/opencv/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Boost 增压累加器尾部模板参数无效_Boost_Tail - Fatal编程技术网

Boost 增压累加器尾部模板参数无效

Boost 增压累加器尾部模板参数无效,boost,tail,Boost,Tail,我是一个使用增压蓄能器的新手。我用boost网站上的例子尝试了一个简单的程序。我有一些简单的建议: #include <boost/accumulators/accumulators.hpp> #include <boost/accumulators/statistics/stats.hpp> #include <boost/accumulators/statistics/tail.hpp> include <boost/accumulators/sta

我是一个使用增压蓄能器的新手。我用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 );
#包括
#包括
#包括
包括
使用名称空间boost::累加器;
typedef蓄能器设置蓄能器右;
typedef累加器设置累加器左;
累加器右acc0(标记::尾部::缓存大小=1000);
累加器右acc1(标记::尾部::缓存大小=1000);
累加器左acc2(标记::尾部::缓存大小=1000);
累加器左acc3(tag::tail::cache\u 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:错误:在“=”标记之前应该有不合格的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:错误:在“=”标记之前应该有不合格的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:错误:在“=”标记之前应该有不合格的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:错误:在“=”标记之前应该有不合格的id

我是否需要为右参数和左参数使用特定的名称空间?这些定义在哪里?或者是别的什么问题

任何帮助都将不胜感激。先谢谢你

问候,


乔恩

这不可能是你的节目。在include之前缺少一个
#
,并且代码编译时总体上是这样。