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.

Instance HashCompare doesn't compile

Zhu__Jing
Beginner
186 Views

Hi,

  I'm testing HashCompare with a constructor on concurrent_hash_map. The original code on the document page(https://software.intel.com/en-us/node/506078) didn't compile. The error is

tbb_example.cc:31:64: error: no matching function for call to ‘tbb::interface5::concurrent_hash_map<std::basic_string<char>, int, VariantHashCompare>::concurrent_hash_map(VariantHashCompare)’
 VariantStringTable CaseSensitiveTable(VariantHashCompare(false));
 
 
public gist of the code is here: https://gist.github.com/arewedancer/a6ac95ddd800b4da27a943a406bf8226
                                                                ^   
0 Kudos
1 Reply
Alexey_K_Intel3
Employee
186 Views

Hello Jing,

Thank you for reporting the problem. It appears that you have discovered a discrepancy between the documentation and implementation that exists in TBB for years. We will address it; for now, consider that code sample invalid.

Reply