From 617bf071cbde6d451ace4d03c4a439c4027ff2a1 Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Fri, 22 Jun 2012 21:44:29 +0000 Subject: [PATCH] Fixed warning by making "what" const. Please investigate warnings! --- gtsam/linear/JacobianFactor.cpp | 2 +- gtsam/linear/JacobianFactor.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gtsam/linear/JacobianFactor.cpp b/gtsam/linear/JacobianFactor.cpp index e2a582d9b..417548ed5 100644 --- a/gtsam/linear/JacobianFactor.cpp +++ b/gtsam/linear/JacobianFactor.cpp @@ -572,7 +572,7 @@ namespace gtsam { } /* ************************************************************************* */ - const char* JacobianFactor::InvalidNoiseModel::what() throw() { + const char* JacobianFactor::InvalidNoiseModel::what() const throw() { if(description_.empty()) description_ = (boost::format( "A JacobianFactor was attempted to be constructed or modified to use a\n" diff --git a/gtsam/linear/JacobianFactor.h b/gtsam/linear/JacobianFactor.h index 7e1381f38..7fb4211fb 100644 --- a/gtsam/linear/JacobianFactor.h +++ b/gtsam/linear/JacobianFactor.h @@ -310,7 +310,7 @@ namespace gtsam { factorDims(factorDims), noiseModelDims(noiseModelDims) {} virtual ~InvalidNoiseModel() throw() {} - virtual const char* what() throw(); + virtual const char* what() const throw(); private: mutable std::string description_;