- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a class inherited from concurrent_vector, of course the function at and [] can get the reference, but I want to create a function Type* get() to get the first element's address.
How can I do this? I've made some try, but the compiler always generate thsee warning:
tbb/concurrent_vector.h(889): warning C4345: behavior change: an object of POD type constructed with an initializer of the form () will be default-initialized
How can I do this? I've made some try, but the compiler always generate thsee warning:
tbb/concurrent_vector.h(889): warning C4345: behavior change: an object of POD type constructed with an initializer of the form () will be default-initialized
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
concurrent_vector does not lie in memory sequentially, so pointer to a first element is not as useful as one may think.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page