oneTBB icon indicating copy to clipboard operation
oneTBB copied to clipboard

TBB_PREVIEW_CONCURRENT_ORDERED_CONTAINERS

Open afabri opened this issue 2 years ago • 2 comments

In an older version of TBB we encounter the error message

C:\dev\tbb2019_20191006oss_win\tbb2019_20191006oss\include\tbb/concurrent_map.h(24,1): fatal error C1189: #error:  Set TBB_PREVIEW_CONCURRENT_ORDERED_CONTAINERS to include concurrent_map.h

Is it safe to assume that we can add the #define without impact on newer versions ?

We do not have the problem with 2021.8.0 but we can't find any TBB change log when the preview became standard, in case we had to #ifdef the #define with a minimal version.

afabri avatar Oct 31 '23 14:10 afabri

We have moved it out of preview with update to the oneTBB (from old TBB). I think you can check for TBB_INTERFACE_VERSION it should be less than 12010 (to be old TBB)

pavelkumbrasev avatar Nov 01 '23 08:11 pavelkumbrasev

@afabri, I would not expect any impact from defining the TBB_PREVIEW_CONCURRENT_ORDERED_CONTAINERS macro on the newer version of TBB, I guess you can do it safely. @pavelkumbrasev please correct me if I am wrong.

kboyarinov avatar Nov 06 '23 13:11 kboyarinov

@afabri is this issue still relevant?

nofuturre avatar Jul 12 '24 15:07 nofuturre

@nofuturre we have been using the recommended macro without any issue. Thanks!

sloriot avatar Jul 12 '24 15:07 sloriot