c++ - "circular_buffer":"BlockDiagram::Filter<T>StampedValue" is not a valid template type argument for parameter "T" -
following implementation leads error "circular_buffer":"blockdiagram::filterstampedvalue" not valid template type argument parameter "t".
header-file:
namespace blockdiagram { template<class t=double> class filter { public: typedef struct { std::chrono::time_point<std::chrono::system_clock> tv; t d; } stampedvalue; typedef circular_buffer<filter<t>::stampedvalue> cbuf_type;...} cpp-file:
namespace blockdiagram { template<class t> filter<t>::filter() { ... }} unfortunately have no clue wrong in implementation.
Comments
Post a Comment