Skip to content

fix: sync wrap subtree with borglab/wrap master (Win64 size_t guard)#2572

Closed
thatdudegrantt wants to merge 4 commits into
borglab:developfrom
thatdudegrantt:sync/update-wrap-subtree
Closed

fix: sync wrap subtree with borglab/wrap master (Win64 size_t guard)#2572
thatdudegrantt wants to merge 4 commits into
borglab:developfrom
thatdudegrantt:sync/update-wrap-subtree

Conversation

@thatdudegrantt

Copy link
Copy Markdown
Contributor

What this does
Syncs the gtsam/wrap/ subtree with the current borglab/wrap master branch using git subtree pull against the upstream wrap repository. This pulls in borglab/wrap PR 183 which resolves duplicate explicit template specialization errors when building the MATLAB wrapper on 64-bit Windows, where size_t and uint64_t resolve to the same underlying type.

Changes
Guards wrap<size_t> and unwrap<size_t> specializations in matlab.h with #if !defined(_WIN64) || defined(CUDACC) to prevent the collision on Win64 MSVC builds.

Testing
Fix was locally verified on Windows 11 x64, Visual Studio 2026 Community (MSVC 19.51), MATLAB R2026a, CMake 4.2.3. Populates fixes for #2505 within gtsam/wrap.

Note
A follow-up sync will be needed if borglab/wrap PR 186 is merged.

f1743dfee Merge pull request borglab#183 from thatdudegrantt/fix/matlab-size_t-win64-duplicate
b330797be Updating comments on copilot's suggestion
5fe01237e fix: guard size_t template specializations for Win64

git-subtree-dir: wrap
git-subtree-split: f1743dfeee858ab3e8966b9e8ddb4e6ead45b827
@dellaert

Copy link
Copy Markdown
Member

I merged the other wrap PR so could you maybe re-sync in this PR again?

0ba6534a9 Merge pull request borglab#186 from svenangerer/fix-linux-size_t
211bba1ba fix: guard size_t template specializations for 64-bit Unix (__LP64__)

git-subtree-dir: wrap
git-subtree-split: 0ba6534a9f01a7e8f0b0422b33ebd07c8a7bdd3c
@thatdudegrantt

Copy link
Copy Markdown
Contributor Author

I merged the other wrap PR so could you maybe re-sync in this PR again?

Sounds good I'll do that right now!

@thatdudegrantt

Copy link
Copy Markdown
Contributor Author

Re-synced with borglab/wrap master. This now includes both PR #183 (Win64 size_t guard) and PR #186 (LP64 Unix size_t guard).

@dellaert dellaert left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM !!!

@dellaert dellaert left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There still is a change in the wrap subtree at the moment.

@dellaert

Copy link
Copy Markdown
Member

@thatdudegrantt ping :-)

@thatdudegrantt thatdudegrantt deleted the sync/update-wrap-subtree branch June 29, 2026 18:12
@thatdudegrantt

Copy link
Copy Markdown
Contributor Author

Hi there, I am currently in the progress of updating it after reviewing the proper way of updating subtree, so I am closing this and will open a new updated one. Thank you for the reping!

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.

2 participants