Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
2401 Discussions

Using the tbb pipeline with the 3.0 syntax

creatiwit
Beginner
84 Views
I am trying to build a TBB pipeline with the new syntax as described in the tutorial, using tbb:filter_t as below
FILE *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 qualifiers
It works fine with the inheritance based old filter API.
0 Kudos
0 Replies
Reply