Skip to content

Commit

Permalink
boost/threadpool/detail/pool_core.hpp: Connor Smith suggests catching…
Browse files Browse the repository at this point in the history
… by const reference to fix gcc-8's warning: catching polymorphic type ‘class boost::thread_resource_error’ by value (philipphenkel#5).
  • Loading branch information
martindorey committed Feb 17, 2024
1 parent a7b3e05 commit f16a070
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boost/threadpool/detail/pool_core.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ namespace boost { namespace threadpool { namespace detail
m_worker_count++;
m_active_worker_count++;
}
catch(thread_resource_error)
catch(const thread_resource_error&)
{
return false;
}
Expand Down

0 comments on commit f16a070

Please sign in to comment.