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

VS2008 warning

jogshy
New Contributor I
278 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-Kukanov
Employee
278 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

0 Kudos
2 Replies
Alexey-Kukanov
Employee
279 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.

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