You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The same error shows with both boost::shared_ptr<T> and std::shared_ptr<T>.
I will link a PR once I find a solution.
On a personal note, please...please test your code...
Whilst I appreciate the following from page 255...
"As with most of the examples, this is intended to demonstrate an idea rather than being production-ready code."
, ...it's extremely unhelpful as a reader to be exposed to code that either doesn't compile, run, or exhibits data races / undefined behaviour on a frequent basis.
It would also be nice if this repo could be rejigged to include a combination of listing excerpts (that focus on the changes) and full listings (that demonstrate functionality)
The text was updated successfully, but these errors were encountered:
Combining Listing 6.1 and Listing 8.1 we get the following runtime error:
ccia_code_samples/listings/listing_6.1.cpp
Lines 1 to 55 in 6e7ae1d
ccia_code_samples/listings/listing_8.1.cpp
Lines 1 to 106 in 6e7ae1d
This is after making a few amendments to allow the code to compile.
// thread_safe_stack<chunk_to_sort> chunks; threadsafe_stack<chunk_to_sort> chunks;
The same error shows with both
boost::shared_ptr<T>
andstd::shared_ptr<T>
.I will link a PR once I find a solution.
On a personal note, please...please test your code...
Whilst I appreciate the following from page 255...
, ...it's extremely unhelpful as a reader to be exposed to code that either doesn't compile, run, or exhibits data races / undefined behaviour on a frequent basis.
It would also be nice if this repo could be rejigged to include a combination of listing excerpts (that focus on the changes) and full listings (that demonstrate functionality)
The text was updated successfully, but these errors were encountered: