Commit 5c72d0e1 authored by Lynn Garren's avatar Lynn Garren
Browse files

don't overload anonymousRestoreStatics name

parent d02f2a7d
// -*- 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 anonymousRestoreStatics1() {
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 anonymousRestoreStatics1<E1>();
}
HepRandomEngine *e1 = new E1(12456);
HepRandom::setTheEngine(e1);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment