Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
varunagrawal committed Sep 24, 2024
1 parent 191db15 commit 83f8ac8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion gtsam_unstable/dynamics/DynamicsPriors.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class PartialPoseRTVPriorFactor : public PartialPriorFactor<PoseRTV> {
using Base::evaluateError;

gtsam::NonlinearFactor::shared_ptr clone() const override {
return boost::static_pointer_cast<gtsam::NonlinearFactor>(
return std::static_pointer_cast<gtsam::NonlinearFactor>(
gtsam::NonlinearFactor::shared_ptr(new This(*this))); }

private:
Expand Down
8 changes: 1 addition & 7 deletions gtsam_unstable/slam/PartialPriorFactor.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class PartialPriorFactor : public NoiseModelFactorN<VALUE> {
public:
typedef VALUE T;

private:
protected:
typedef NoiseModelFactorN<VALUE> Base;
typedef PartialPriorFactor<VALUE> This;

Expand Down Expand Up @@ -88,12 +88,6 @@ class PartialPriorFactor : public NoiseModelFactorN<VALUE> {

~PartialPriorFactor() override {}

/// @return a deep copy of this factor
gtsam::NonlinearFactor::shared_ptr clone() const override {
return std::static_pointer_cast<gtsam::NonlinearFactor>(
gtsam::NonlinearFactor::shared_ptr(new This(*this)));
}

/** Implement functions needed for Testable */

/** print */
Expand Down

0 comments on commit 83f8ac8

Please sign in to comment.