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

Make new_skeleton with one argument able to be call #685

Merged
merged 1 commit into from
Dec 27, 2024

Conversation

Coldwings
Copy link
Collaborator

there is two new_skeleton overloads, one with
new_skeleton(uint32_t pool_size = 128)
and another one is deprecated,
new_skeleton(bool, int)

when user calling with a integer parameter, such as
new_skeleton(32)
since c++ allows explicit cast from int to bool, both of those overloads are able to be called, become ambiguous calling.

remove the default parameter value of deprecated one, when user trying goes with only one parameter, it will always call the first implementation.

@lihuiba lihuiba merged commit 02bd6bc into alibaba:release/0.7 Dec 27, 2024
15 checks passed
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