Using the tbb pipeline with the 3.0 syntax

Using the tbb pipeline with the 3.0 syntax

I am trying to build a TBB pipeline with the new syntax as described in the tutorial, using tbb:filter_t as belowFILE *fd tbb::filter_t f1( tbb::filter::serial_in_order, MyInputFunc(fd) );but it keeps throwing a compile error:tbb40_20120201oss/include/tbb/pipeline.h:416: error: passing const MyInputFunc as this argument of TextSlice* MyInputFunc::operator()(tbb::interface6::flow_control&) discards qualifiersIt works fine with the inheritance based old filter API.

1 Beitrag / 0 neu
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.