Removed conflict stuff: Jing, why reinterpret_cast ?
parent
1233a9c9b7
commit
f440ac92ff
|
@ -292,12 +292,8 @@ namespace gtsam {
|
||||||
Eigen::Matrix<double, -1, 1> operator()(Key j,
|
Eigen::Matrix<double, -1, 1> operator()(Key j,
|
||||||
const gtsam::Value * const pointer) {
|
const gtsam::Value * const pointer) {
|
||||||
try {
|
try {
|
||||||
//<<<<<<< HEAD
|
|
||||||
// value returns a const Vector&, and the return makes a copy !!!!!
|
// value returns a const Vector&, and the return makes a copy !!!!!
|
||||||
return dynamic_cast<const GenericValue<Eigen::Matrix<double, -1, 1> >&>(*pointer).value();
|
return dynamic_cast<const GenericValue<Eigen::Matrix<double, -1, 1> >&>(*pointer).value();
|
||||||
//=======
|
|
||||||
// return reinterpret_cast<const GenericValue<Eigen::Matrix<double, -1, 1> >&>(*pointer).value();
|
|
||||||
//>>>>>>> feature/FixFixedValues
|
|
||||||
} catch (std::bad_cast &) {
|
} catch (std::bad_cast &) {
|
||||||
// If a fixed vector was stored, we end up here as well.
|
// If a fixed vector was stored, we end up here as well.
|
||||||
throw ValuesIncorrectType(j, typeid(*pointer),
|
throw ValuesIncorrectType(j, typeid(*pointer),
|
||||||
|
|
Loading…
Reference in New Issue