Index: exception_ptr_test.cpp =================================================================== --- exception_ptr_test.cpp (revision 77981) +++ exception_ptr_test.cpp (working copy) @@ -44,7 +44,7 @@ explicit thread_handle( boost::function const & f ): - t_(boost::bind(thread_wrapper,f,err_)) + t_(boost::bind(thread_wrapper,f,boost::ref(err_))) { } @@ -79,7 +79,7 @@ ++exc_count; } - exc( exc const & ) + exc( exc const & rt ) : boost::exception( rt ) { ++exc_count; }