We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In
https://github.com/stan-dev/math/blob/develop/stan/math/prim/core/init_threadpool_tbb.hpp#L50
we catch (boost::bad_lexical_cast), which throws a warning with g++-8 and above saying
catch (boost::bad_lexical_cast)
g++-8
stan/math/prim/core/init_threadpool_tbb.hpp:52:21: warning: catching polymorphic type ‘class boost::bad_lexical_cast’ by value [-Wcatch-value=]
The internet thinks that exceptions should be caught by constant reference.
Compile anything that includes this header file with g++-8
None
v3.0.0
The text was updated successfully, but these errors were encountered:
bgoodri
Successfully merging a pull request may close this issue.
Description
In
https://github.com/stan-dev/math/blob/develop/stan/math/prim/core/init_threadpool_tbb.hpp#L50
we
catch (boost::bad_lexical_cast)
, which throws a warning withg++-8
and above sayingThe internet thinks that exceptions should be caught by constant reference.
Example
Compile anything that includes this header file with
g++-8
Expected Output
None
Current Version:
v3.0.0
The text was updated successfully, but these errors were encountered: