Skip to content

Commit

Permalink
make ctors explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
pcaspers committed Nov 11, 2023
1 parent 8dd19ca commit 0f621e7
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,10 @@ namespace QuantLib {

class SobolBrownianGeneratorFactory : public BrownianGeneratorFactory {
public:
SobolBrownianGeneratorFactory(
SobolBrownianGenerator::Ordering ordering,
unsigned long seed = 0,
SobolRsg::DirectionIntegers directionIntegers
= SobolRsg::Jaeckel);
explicit SobolBrownianGeneratorFactory(
SobolBrownianGenerator::Ordering ordering,
unsigned long seed = 0,
SobolRsg::DirectionIntegers directionIntegers = SobolRsg::Jaeckel);
ext::shared_ptr<BrownianGenerator> create(Size factors, Size steps) const override;

private:
Expand All @@ -121,7 +120,7 @@ namespace QuantLib {

class Burley2020SobolBrownianGeneratorFactory : public BrownianGeneratorFactory {
public:
Burley2020SobolBrownianGeneratorFactory(
explicit Burley2020SobolBrownianGeneratorFactory(
SobolBrownianGenerator::Ordering ordering,
unsigned long seed = 42,
SobolRsg::DirectionIntegers directionIntegers = SobolRsg::Jaeckel,
Expand Down

0 comments on commit 0f621e7

Please sign in to comment.