Skip to content

Commit

Permalink
Prevent incorrect conversions.
Browse files Browse the repository at this point in the history
  • Loading branch information
lballabio committed Feb 9, 2021
1 parent 9377302 commit 186bf19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ql/experimental/credit/randomdefaultlatentmodel.hpp
Expand Up @@ -818,7 +818,7 @@ namespace QuantLib {
class RandomDefaultLM : public RandomLM<RandomDefaultLM, copulaPolicy, USNG>
{
private:
typedef simEvent<RandomDefaultLM> defaultSimEvent;
using defaultSimEvent = simEvent<RandomDefaultLM>;

// \todo Consider this to be only a ConstantLossLM instead
const ext::shared_ptr<DefaultLatentModel<copulaPolicy> > model_;
Expand Down
5 changes: 3 additions & 2 deletions ql/experimental/math/latentmodel.hpp
Expand Up @@ -102,14 +102,15 @@ namespace QuantLib {

// gcc reports value collision with heston engine (?!) thats why the name
namespace LatentModelIntegrationType {
typedef

enum LatentModelIntegrationType {
#ifndef QL_PATCH_SOLARIS
GaussianQuadrature,
#endif
Trapezoid
// etc....
} LatentModelIntegrationType;
};

}

#ifndef QL_PATCH_SOLARIS
Expand Down

0 comments on commit 186bf19

Please sign in to comment.