Skip to content

Add missing "include <memory>" needed for unique_ptr#2338

Merged
ahojnnes merged 4 commits intocolmap:mainfrom
Tobias-Fischer:patch-17
Jan 9, 2024
Merged

Add missing "include <memory>" needed for unique_ptr#2338
ahojnnes merged 4 commits intocolmap:mainfrom
Tobias-Fischer:patch-17

Conversation

@Tobias-Fischer
Copy link
Copy Markdown
Contributor

@Tobias-Fischer Tobias-Fischer commented Jan 8, 2024

Fix:

/home/conda/feedstock_root/build_artifacts/colmap_1704738145804/work/src/colmap/image/line.cc: In function 'std::vector<colmap::LineSegment> colmap::DetectLineSegments(const colmap::Bitmap&, double)': /home/conda/feedstock_root/build_artifacts/colmap_1704738145804/work/src/colmap/image/line.cc:63:8: error: 'unique_ptr' is not a member of 'std'
   63 |   std::unique_ptr<double, RawDeleter> segments_data(
      |        ^~~~~~~~~~
/home/conda/feedstock_root/build_artifacts/colmap_1704738145804/work/src/colmap/image/line.cc:36:1: note: 'std::unique_ptr' is defined in header '<memory>'; did you forget to '#include <memory>'?

Fix:
/home/conda/feedstock_root/build_artifacts/colmap_1704738145804/work/src/colmap/image/line.cc: In function 'std::vector<colmap::LineSegment> colmap::DetectLineSegments(const colmap::Bitmap&, double)':
/home/conda/feedstock_root/build_artifacts/colmap_1704738145804/work/src/colmap/image/line.cc:63:8: error: 'unique_ptr' is not a member of 'std'
   63 |   std::unique_ptr<double, RawDeleter> segments_data(
      |        ^~~~~~~~~~
/home/conda/feedstock_root/build_artifacts/colmap_1704738145804/work/src/colmap/image/line.cc:36:1: note: 'std::unique_ptr' is defined in header '<memory>'; did you forget to '#include <memory>'?
@ahojnnes
Copy link
Copy Markdown
Contributor

ahojnnes commented Jan 8, 2024

Thanks, this will need a clang-format run using scripts/format/clang_format.sh. Thanks.

@Tobias-Fischer
Copy link
Copy Markdown
Contributor Author

Hi @ahojnnes - are you ok to run the clang-format, please?

Thanks.

@timsutton
Copy link
Copy Markdown

timsutton commented Jan 9, 2024

@Tobias-Fischer You can (locally) run scripts/format/clang_format.sh in this branch and push to this PR.

@ahojnnes
Copy link
Copy Markdown
Contributor

ahojnnes commented Jan 9, 2024

@Tobias-Fischer I cannot actually modify a branch in your fork. I modified the files in-situ directly here in the PR.

@ahojnnes ahojnnes enabled auto-merge (squash) January 9, 2024 17:04
@ahojnnes ahojnnes merged commit 71cebde into colmap:main Jan 9, 2024
@Tobias-Fischer Tobias-Fischer deleted the patch-17 branch January 9, 2024 19:10
@sarlinpe sarlinpe mentioned this pull request Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants