Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
2417 Discussions

can a struct be declared as body object instead of a class??

study24816
Beginner
106 Views
Hi Senior programmer of TBB,

Since the last posts until now, I still haven't been able to write my first application using TBB. Then, I decided to read some real application.

HOG descriptors, a algorithm to detect human, is implemented in OpenCV library and also uses TBB.

I just want to ask if a struct can be replace for a class to be declared as body object in TBB application?? because in HOG, it is done so.

Why isn't this documented in Intel TBB document (TBB tutorial or TBB getting started)? or did I miss something??

Thank you for any comment!
0 Kudos
1 Reply
RafSchietekat
Black Belt
106 Views
Struct and class types are equivalent, except for different default visibilities (public resp. private).
Reply