Skip to content

Conversation

@AlisdairM
Copy link
Contributor

There is no ordering dependency between the two typedefs in namespace std, the macros that follow, and teh next opening of namespace std, so move the two typedefs to avoid repeatedly opening an closing the namespace.

Note that we could have done this without moving
the typedefs as macros are not bound by namespaces, but our convention very sensibly avoids confusing
readers by keeping macro definitions outside of
namespaces.

Copy link
Member

@jensmaurer jensmaurer left a comment

Choose a reason for hiding this comment

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

Works for me.

@tkoeppe
Copy link
Contributor

tkoeppe commented Feb 9, 2025

@AlisdairM Could you please rebase?

@wg21bot wg21bot added the needs rebase The pull request needs a git rebase to resolve merge conflicts. label Feb 9, 2025
There is no ordering dependency between the two typedefs
in namespace std, the macros that follow, and teh next
opening of namespace std, so move the two typedefs to
avoid repeatedly opening an closing the namespace.

Note that we could have done this without moving
the typedefs as macros are not bound by namespaces,
but our convention very sensibly avoids confusing
readers by keeping macro definitions outside of
namespaces.
@AlisdairM AlisdairM force-pushed the consolidate_std_cmath branch from dafa5a9 to 1666dd3 Compare February 10, 2025 02:02
@AlisdairM
Copy link
Contributor Author

Rebased and force-pushed

@tkoeppe tkoeppe merged commit 45eb505 into cplusplus:main Feb 10, 2025
2 checks passed
@AlisdairM AlisdairM deleted the consolidate_std_cmath branch February 10, 2025 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs rebase The pull request needs a git rebase to resolve merge conflicts.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants