Browse Source

fix for gcc 4.9

Former-commit-id: d6f8d87a63
tempestpy_adaptions
sjunges 10 years ago
parent
commit
6fde42850d
  1. 6
      src/models/AbstractModel.h

6
src/models/AbstractModel.h

@ -309,7 +309,7 @@ class AbstractModel: public std::enable_shared_from_this<AbstractModel<T>> {
* @return True if this model has a state reward model. * @return True if this model has a state reward model.
*/ */
bool hasStateRewards() const { bool hasStateRewards() const {
return stateRewardVector;
return static_cast<bool>(stateRewardVector);
} }
/*! /*!
@ -317,7 +317,7 @@ class AbstractModel: public std::enable_shared_from_this<AbstractModel<T>> {
* @return True if this model has a transition reward model. * @return True if this model has a transition reward model.
*/ */
bool hasTransitionRewards() const { bool hasTransitionRewards() const {
return transitionRewardMatrix;
return static_cast<bool>(transitionRewardMatrix);
} }
/*! /*!
@ -325,7 +325,7 @@ class AbstractModel: public std::enable_shared_from_this<AbstractModel<T>> {
* @return True if this model has a labeling. * @return True if this model has a labeling.
*/ */
bool hasChoiceLabeling() const { bool hasChoiceLabeling() const {
return choiceLabeling;
return static_cast<bool>(choiceLabeling);
} }
/*! /*!

Loading…
Cancel
Save