20 #include <boost/lexical_cast.hpp> 36 mutable std::string what_;
39 key_(key), formatter_(formatter) {}
41 Key key()
const {
return key_; }
42 virtual const char* what()
const throw() {
45 "\nRequested to marginalize out variable " + formatter_(key_) +
", but this variable\n\ 46 is not a leaf. To make the variables you would like to marginalize be leaves,\n\ 47 their ordering should be constrained using the constrainedKeys argument to\n\ Thrown when requesting to marginalize out variables from ISAM2 that are not leaves.
Definition: nonlinearExceptions.h:33
std::uint64_t Key
Integer nonlinear key type.
Definition: types.h:57
Global functions in a separate testing namespace.
Definition: chartTesting.h:28
boost::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
Definition: Key.h:33