Skip to content

Remove 'using namespace Eigen' from public headers; qualify Eigen types - #10

Merged
mmmarinho merged 1 commit into
mainfrom
openhands/qualify-namespace-types
Sep 25, 2026
Merged

mmmarinho merged 1 commit into
mainfrom
openhands/qualify-namespace-types

Conversation

@mmmarinho

Copy link
Copy Markdown
Contributor

Companion to the using namespace guardrail in MarinhoLab/sas_devel (PR #8).

Removes using namespace Eigen; from public headers and qualifies the affected Eigen types at the use sites, so that headers no longer leak Eigen into every translation unit that includes them.

This PR was created by an AI agent (OpenHands) on behalf of the repository owner.

BREAKING for consumers of the libmarinholab-sas-core .deb public headers:
marinholab/sas/core/*.hpp no longer leak 'using namespace Eigen;'.
VectorXd/MatrixXd/VectorXi are qualified with Eigen:: throughout the
library (public headers, sources, examples). External projects that
included these headers and used bare Eigen type names must qualify them
(e.g. 'VectorXd' -> 'Eigen::VectorXd').
'using namespace DQ_robotics;' in eigen3_std_conversions.hpp is kept (per
project policy).

This PR was created by an AI agent (OpenHands) on behalf of the repository owner.

@mmmarinho mmmarinho left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

👍

@mmmarinho
mmmarinho merged commit 797ffb8 into main Sep 25, 2026
17 checks passed
@mmmarinho
mmmarinho deleted the openhands/qualify-namespace-types branch September 25, 2026 05:53
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.

1 participant