Opened 10 years ago
Closed 10 years ago
#6877 closed Bugs (fixed)
bug in exception_ptr_test.cpp
Reported by: | anonymous | Owned by: | Emil Dotchevski |
---|---|---|---|
Milestone: | To Be Determined | Component: | exception |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | Cc: |
Description
I think that the exception_ptr_test.cpp file has a bug that is preventing it from testing what is intended. The boost::exception_ptr object that is being used in boost::bind as part of the thread function does not have boost::ref() around it, so what is actually being passed to the thread invocation is a copy of the exception_ptr object. This means that when the thread function set the exception_ptr, the information never makes its way to the outside world after the join. A patch is attached to correct the problem.
Attachments (1)
Change History (2)
by , 10 years ago
Attachment: | boost-exception-exception_ptr_test.cpp.patch added |
---|
comment:1 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed in trunk revision number 79012
Note:
See TracTickets
for help on using tickets.
patch file