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

Mark methods on TableClient and TableServiceClient as const #6329

Open
ahsonkhan opened this issue Jan 9, 2025 · 0 comments
Open

Mark methods on TableClient and TableServiceClient as const #6329

ahsonkhan opened this issue Jan 9, 2025 · 0 comments
Assignees
Labels

Comments

@ahsonkhan
Copy link
Member

Since this SDK hasn't shipped yet, we can safely make this update and adhere to the C++ guidelines.

SDK Clients are designed to be immutable as per the guidelines, so it should be safe to mark them as const so that a user referencing client instances as const& will be able to call any of the marked methods.

DO ensure that all service client classes thread safe (usually by making them immutable and stateless).

Similar to #6328

Codegen issue for context: https://github.com/Azure/autorest.cpp/issues/464

cc @LarryOsterman, @RickWinter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants