Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
2465 Discussions

warning C4296: '>': expression is always false

kkumar45
Beginner
981 Views

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
1 Reply
James_T_Intel
Moderator
796 Views

I apologize for the lack of response to your thread. I have tested this with Visual Studio 2019 using the latest version of Intel® oneAPI Threading Building Blocks and this behavior is not occurring. Please try again with the latest version.


I am closing this thread for Intel support. Any future replies will be considered community only.


0 Kudos
Reply