Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move named parameters to separate namespace. #759

Merged
merged 3 commits into from
Jan 14, 2025

Conversation

niklas-uhl
Copy link
Member

Like that, the user does not have to pollute there namespace with all KaMPIng symbols, but only the named parameters. All named parameters are now placed in kamping::params. To avoid breaking existing code, this namespace is also re-export in the kamping namespace.

A user can also just define a shorthand, e.g.

namespace kmp = kamping::params;

I extended the allgatherv example, with that, because this is what we direct new users to.

@niklas-uhl niklas-uhl requested a review from mschimek January 14, 2025 07:59
examples/usage/allgatherv_example.cpp Outdated Show resolved Hide resolved
@niklas-uhl niklas-uhl changed the title Move named parameters to seperate namespace. Move named parameters to separate namespace. Jan 14, 2025
@niklas-uhl niklas-uhl merged commit 873ecb1 into main Jan 14, 2025
7 checks passed
@niklas-uhl niklas-uhl deleted the feature/named-parameter-namespace branch January 14, 2025 09:07
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