Fixed warning by making "what" const. Please investigate warnings!

release/4.3a0
Frank Dellaert 2012-06-22 21:44:29 +00:00
parent e42dc5cdc9
commit 617bf071cb
2 changed files with 2 additions and 2 deletions

View File

@ -572,7 +572,7 @@ namespace gtsam {
} }
/* ************************************************************************* */ /* ************************************************************************* */
const char* JacobianFactor::InvalidNoiseModel::what() throw() { const char* JacobianFactor::InvalidNoiseModel::what() const throw() {
if(description_.empty()) if(description_.empty())
description_ = (boost::format( description_ = (boost::format(
"A JacobianFactor was attempted to be constructed or modified to use a\n" "A JacobianFactor was attempted to be constructed or modified to use a\n"

View File

@ -310,7 +310,7 @@ namespace gtsam {
factorDims(factorDims), noiseModelDims(noiseModelDims) {} factorDims(factorDims), noiseModelDims(noiseModelDims) {}
virtual ~InvalidNoiseModel() throw() {} virtual ~InvalidNoiseModel() throw() {}
virtual const char* what() throw(); virtual const char* what() const throw();
private: private:
mutable std::string description_; mutable std::string description_;