Fixed warning by making "what" const. Please investigate warnings!
parent
e42dc5cdc9
commit
617bf071cb
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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_;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue