Since these are functions in our own namespace -- that happen to have the
same names as ones in the std:: namespace, but really independent -- there
is no reason not to use our own conventions. Specifically:
- make input arguments 'const'
- remove the deprecated 'throw()' specification.
// ---------------------------------------------------------------------
//
-// Copyright (C) 2004 - 2015 by the deal.II authors
+// Copyright (C) 2004 - 2016 by the deal.II authors
//
// This file is part of the deal.II library.
//
// we put this into a namespace to not conflict with stdlib
namespace Testing
{
- int rand(bool reseed=false, int seed=1) throw()
+ int rand(const bool reseed=false,
+ const int seed=1)
{
static int r[32];
static int k;
}
// reseed our random number generator
- void srand(int seed) throw()
+ void srand(const int seed)
{
rand(true, seed);
}
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams