Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
121 Views

warning C4296: '>': expression is always false

Hi,

Our application treats warning as error.

We are seeing below warning on windows with Visual Studio 2017 after upgrading to TBB 2020.  It's coming from tbb "concurrent_unordered_set.h" header.

Below program helps to generate the warning. 

Error details:

tbb\concurrent_unordered_set.h(229): error C2220: warning treated as error - no 'object' file generated
tbb\concurrent_unordered_set.h(235): note: see reference to alias template instantiation 'cu_set_t<tbb::interface5::concurrent_unordered_set,std::iterator_traits<_Iter>::value_type,>' being compiled
tbb\concurrent_unordered_set.h(229): warning C4296: '>': expression is always false

 

#include <tbb/concurrent_unordered_set.h>

int main() 
{
    return 0;
}

 

0 Kudos
0 Replies