Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CLHEP
CLHEP
Commits
5c72d0e1
Commit
5c72d0e1
authored
Mar 23, 2005
by
Lynn Garren
Browse files
don't overload anonymousRestoreStatics name
parent
d02f2a7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Random/test/ranRestoreTest.cc
View file @
5c72d0e1
// -*- C++ -*-
// $Id: ranRestoreTest.cc,v 1.3.2.
7
2005/03/
15 21:20:42 fischler
Exp $
// $Id: ranRestoreTest.cc,v 1.3.2.
8
2005/03/
23 23:19:41 garren
Exp $
// ----------------------------------------------------------------------
#include "CLHEP/Random/Randomize.h"
#include "CLHEP/Random/NonRandomEngine.h"
...
...
@@ -1047,7 +1047,7 @@ int anonymousRestore(int n) {
// ----------- Anonymous restore of all static distributions -----------
template
<
class
E
>
int
anonymousRestoreStatics
()
{
int
anonymousRestoreStatics
1
()
{
int
stat
=
0
;
HepRandomEngine
*
e
=
new
E
(
12456
);
HepRandom
::
setTheEngine
(
e
);
...
...
@@ -1082,7 +1082,7 @@ template <class E1, class E2>
int
anonymousRestoreStatics
()
{
int
stat
=
0
;
if
(
E1
::
engineName
()
==
E2
::
engineName
()
)
{
return
anonymousRestoreStatics
<
E1
>
();
return
anonymousRestoreStatics
1
<
E1
>
();
}
HepRandomEngine
*
e1
=
new
E1
(
12456
);
HepRandom
::
setTheEngine
(
e1
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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