Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CLHEP
CLHEP
Commits
c6111eb4
Commit
c6111eb4
authored
Jun 11, 2018
by
Lynn Garren
Browse files
catch uses reference, not copy
parent
896eef37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Random/test/testBug58950.cc
View file @
c6111eb4
...
...
@@ -53,7 +53,7 @@ int main() {
}
in
.
close
();
}
else
throw
std
::
runtime_error
(
"File open error"
);
}
catch
(
std
::
runtime_error
e
)
{
}
catch
(
std
::
runtime_error
&
e
)
{
std
::
ostringstream
dStr
;
dStr
<<
"Error: "
<<
e
.
what
()
<<
" processing seed from file
\"
"
<<
"/dev/urandom"
<<
"
\"
."
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment