- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page