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