'tbb::filter': no appropriate default constructor available

'tbb::filter': no appropriate default constructor available

Hi,
Using the latest version of TBB (2018 update 2), when compiled using cpp17 I'm getting the compile error

tbb::filter': no appropriate default constructor available. My class derives from filter, 
 

class CMyClass : public CMyOtherClass, public tbb::filter

And using it on another class

class cDifferentClass

{

CMyClass* pInput;

int process()

{

tbb::pipeline pipeline; // create pipeline

pipeline.add_filter(*pInput);

}

}

Thanks!

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Hi,

According to documentation class tbb::filter does not have default constructor, but has an explicit user-defined one. Therefore, this explicit constructor must be called from derived class during its construction.

Regards, Aleksei

Leave a Comment

Please sign in to add a comment. Not a member? Join today