Skip to content

Commit

Permalink
Fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
knro committed May 4, 2024
1 parent 888ed3a commit 54a1cc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/alignment/InMemoryDatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ InMemoryDatabase::InMemoryDatabase() : DatabaseReferencePositionIsValid(false),
bool InMemoryDatabase::CheckForDuplicateSyncPoint(const AlignmentDatabaseEntry &CandidateEntry,
double Tolerance) const
{
return std::any_of(MySyncPoints.begin(), MySyncPoints.end(), [CandidateEntry, Tolerance](const auto & point)
return std::any_of(MySyncPoints.begin(), MySyncPoints.end(), [&CandidateEntry, Tolerance](const auto & point)
{
return (((std::abs(point.RightAscension - CandidateEntry.RightAscension) < 24.0 * Tolerance / 100.0) &&
(std::abs(point.Declination - CandidateEntry.Declination) < 180.0 * Tolerance / 100.0)) ||
Expand All @@ -42,7 +42,7 @@ void InMemoryDatabase::RemoveSyncPoint(const AlignmentDatabaseEntry &CandidateEn
double Tolerance)
{
MySyncPoints.erase(std::remove_if(MySyncPoints.begin(), MySyncPoints.end(),
[CandidateEntry, Tolerance](const auto & point)
[&CandidateEntry, Tolerance](const auto & point)
{
return (((std::abs(point.RightAscension - CandidateEntry.RightAscension) < 24.0 * Tolerance / 100.0) &&
(std::abs(point.Declination - CandidateEntry.Declination) < 180.0 * Tolerance / 100.0)) ||
Expand Down

0 comments on commit 54a1cc8

Please sign in to comment.