mirror of
https://github.com/boostorg/interprocess.git
synced 2026-01-19 16:22:19 +00:00
Fixed intrusive_ptr and named condition test and added documentation.
[SVN r40454]
This commit is contained in:
@@ -40,10 +40,10 @@ int main()
|
||||
|
||||
//Initialize our data
|
||||
for( multiallocation_iterator it = beg_it, end_it; it != end_it; ){
|
||||
allocated_buffers.push_back(*it);
|
||||
allocated_buffers.push_back(&*it);
|
||||
//The iterator must be incremented before overwriting memory
|
||||
//because otherwise, the iterator is invalidated.
|
||||
std::memset(*it++, 0, 100);
|
||||
std::memset(&*it++, 0, 100);
|
||||
}
|
||||
|
||||
//Now deallocate
|
||||
@@ -64,7 +64,7 @@ int main()
|
||||
for(multiallocation_iterator it = beg_it; it;){
|
||||
//The iterator must be incremented before overwriting memory
|
||||
//because otherwise, the iterator is invalidated.
|
||||
managed_shm.deallocate(*it++);
|
||||
managed_shm.deallocate(&*it++);
|
||||
}
|
||||
}
|
||||
catch(...){
|
||||
|
||||
Reference in New Issue
Block a user