Skip to content

Commit

Permalink
catch by const reference
Browse files Browse the repository at this point in the history
  • Loading branch information
bgoodri authored Jan 11, 2020
1 parent dbce270 commit 98a8cad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stan/math/prim/core/init_threadpool_tbb.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ inline int get_num_threads() {
"The STAN_NUM_THREADS environment variable is '",
"' but it must be positive or -1");
}
} catch (boost::bad_lexical_cast) {
} catch (const boost::bad_lexical_cast&) {
invalid_argument("get_num_threads(int)", "STAN_NUM_THREADS",
env_stan_num_threads,
"The STAN_NUM_THREADS environment variable is '",
Expand Down

0 comments on commit 98a8cad

Please sign in to comment.