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

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!

2 posts / novo 0
Último post
Para obter mais informações sobre otimizações de compiladores, consulte Aviso sobre otimizações.
imagem de Raf Schietekat

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

Faça login para deixar um comentário.