Community
cancel
Showing results for 
Search instead for 
Did you mean: 
study24816
Beginner
26 Views

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

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
26 Views

Struct and class types are equivalent, except for different default visibilities (public resp. private).
Reply