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

error: C2061: syntax error: identifier 'concurrent_vector<`template-type-parameter-1',`template-type

I'm using TBB in a code which compiles/runs fine on Linux and macOS. However, on Windows 10, I'm compiling the code, but I'm receiving this error:

C:\...\tbb-2020.3-win\tbb\include\tbb\concurrent_vector.h:680: error: C2061: syntax error: identifier 'concurrent_vector<`template-type-parameter-1',`template-type-parameter-2'>'

The error happens at this `concurrent_vector` template:

 

//! Copying constructor for vector with different allocator type
template<class M>
__TBB_DEPRECATED concurrent_vector( const concurrent_vector<T, M>& vector, const allocator_type& a = allocator_type() )
: internal::allocator_base<T, A>(a), internal::concurrent_vector_base()
{
vector_allocator_ptr = &internal_allocator;
__TBB_TRY {
internal_copy(vector.internal_vector_base(), sizeof(T), &copy_array);
} __TBB_CATCH(...) {
segment_t *table = my_segment.load<relaxed>();
internal_free_segments( table, internal_clear(&destroy_array), my_first_block.load<relaxed>() );
__TBB_RETHROW();
}
}

 

The error happens inside the TBB headers:


C:\...\deps\tbb-2020.3-win\tbb\include\tbb\concurrent_vector.h

What could possibly be the cause? How can I resolve it?

Tags (1)
0 Kudos
3 Replies
Highlighted
Community Manager
86 Views

Hello. I have started an investigation.


0 Kudos
Highlighted
Beginner
74 Views

Please refer to this post for more info:

 

https://stackoverflow.com/q/64510477/3405291

 

 

0 Kudos
Highlighted
Community Manager
53 Views

Can you please attach an example? I will try to reproduce the issue.


0 Kudos