Skip to content

Commit

Permalink
Fix allocator declarations. Fixes #13 (thanks @maximosipov).
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolausDemmel committed Jan 29, 2019
1 parent 2384354 commit 38a5cab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/Frame.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ namespace ldso {
};

// relative poses within the active window
map<shared_ptr<Frame>, RELPOSE, std::less<shared_ptr<Frame>>, Eigen::aligned_allocator<RELPOSE>> poseRel;
map<shared_ptr<Frame>, RELPOSE, std::less<shared_ptr<Frame>>, Eigen::aligned_allocator<std::pair<const shared_ptr<Frame>, RELPOSE>>> poseRel;

// Bag of Words Vector structures.
DBoW3::BowVector bowVec; // BoW Vector
Expand Down
2 changes: 1 addition & 1 deletion include/internal/OptimizationBackend/EnergyFunctional.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ namespace ldso {
std::map<uint64_t,
Eigen::Vector2i,
std::less<uint64_t>,
Eigen::aligned_allocator<std::pair<uint64_t, Eigen::Vector2i>>
Eigen::aligned_allocator<std::pair<const uint64_t, Eigen::Vector2i>>
> connectivityMap;

private:
Expand Down

0 comments on commit 38a5cab

Please sign in to comment.