Skip to content

Remove aligned operator new macro - #2579

Merged
dellaert merged 1 commit into
borglab:developfrom
Gold856:remove-aligned-operator-new-macro
Jun 23, 2026
Merged

Remove aligned operator new macro#2579
dellaert merged 1 commit into
borglab:developfrom
Gold856:remove-aligned-operator-new-macro

Conversation

@Gold856

@Gold856 Gold856 commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

It's not needed in C++17. This also aligns with #2578 in removing more code from globally included headers.

It's not needed in C++17.
@dellaert

Copy link
Copy Markdown
Member

That would be awesome. Do you have a source saying that this is not needed for C+ +17 and with the current vendored Eigen version?

@Gold856

Gold856 commented Jun 22, 2026

Copy link
Copy Markdown
Contributor Author

https://libeigen.gitlab.io/eigen/docs-nightly/group__TopicUnalignedArrayAssert.html

If you can target [c++17] only with a recent compiler (e.g., GCC>=7, clang>=5, MSVC>=19.12), then you're lucky: enabling c++17 should be enough

And a similar doc from the 3.4.0 tag on gitlab: https://gitlab.com/libeigen/eigen/-/blob/3.4.0/doc/StructHavingEigenMembers.dox#L11

@dellaert

Copy link
Copy Markdown
Member

Cool!!! I think that covers all our CI configurations, so in that case I'm good.

@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, modulo CI passing

@dellaert
dellaert merged commit d5aa359 into borglab:develop Jun 23, 2026
38 of 40 checks passed
@dellaert

Copy link
Copy Markdown
Member

🥇

@Gold856
Gold856 deleted the remove-aligned-operator-new-macro branch June 23, 2026 06:13
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