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.

VS2008 warning

jogshy
New Contributor I
203 Views
I get these warnings when I compile my program with TBB:

1>d:\\tbb30_20101215oss\\include\\tbb\\concurrent_unordered_map.h(135) : warning C4002: too many actual parameters for macro 'base_type'
1>d:\\tbb30_20101215oss\\include\\tbb\\concurrent_unordered_map.h(139) : warning C4002: too many actual parameters for macro 'base_type'
1>d:\\tbb30_20101215oss\\include\\tbb\\concurrent_unordered_map.h(146) : warning C4002: too many actual parameters for macro 'base_type'
1>d:\\tbb30_20101215oss\\include\\tbb\\concurrent_unordered_map.h(157) : warning C4002: too many actual parameters for macro 'base_type'

Seems you're passing too many params to the concurrent_unordered_map's base class constructor.
thx
0 Kudos
1 Solution
Alexey_K_Intel3
Employee
203 Views

Rather it seems you have a macro with the same name (base_type) as a typedef in TBB, and defined before the TBB header is included.

View solution in original post

2 Replies
Alexey_K_Intel3
Employee
204 Views

Rather it seems you have a macro with the same name (base_type) as a typedef in TBB, and defined before the TBB header is included.

jogshy
New Contributor I
203 Views
Ouch! you're right. It's solved now, thx!
Reply