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)

boost-exception-exception_ptr_test.cpp.patch (586 bytes ) - added by David Deakins 10 years ago.
patch file

Download all attachments as: .zip

Change History (2)

by David Deakins, 10 years ago

patch file

comment:1 by Emil Dotchevski, 10 years ago

Resolution: fixed
Status: newclosed

Fixed in trunk revision number 79012

Note: See TracTickets for help on using tickets.