Instance HashCompare doesn't compile

Instance HashCompare doesn't compile


  I'm testing HashCompare with a constructor on concurrent_hash_map. The original code on the document page( didn't compile. The error is 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));
2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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.

Leave a Comment

Please sign in to add a comment. Not a member? Join today