Skip to content

fix(ut): prevent incorrect implicit conversion of string literals to …#24

Merged
lxy-9602 merged 3 commits intoalibaba:mainfrom
SGZW:fix_some_ut
Dec 22, 2025
Merged

fix(ut): prevent incorrect implicit conversion of string literals to …#24
lxy-9602 merged 3 commits intoalibaba:mainfrom
SGZW:fix_some_ut

Conversation

@SGZW
Copy link
Contributor

@SGZW SGZW commented Dec 19, 2025

…bool

Purpose

Linked issue: close #xxx

when use gcc8, some ut failed because the implicit conversion from const char* to bool is qualified as standard conversion, while const char* to std::string is user-defined conversion. The former has higher ranking and wins in overload resolution.

Tests

API and Format

Documentation

@CLAassistant
Copy link

CLAassistant commented Dec 19, 2025

CLA assistant check
All committers have signed the CLA.

@SGZW SGZW requested a review from lxy-9602 December 22, 2025 07:24
@lucasfang
Copy link
Collaborator

LGTM

@SGZW
Copy link
Contributor Author

SGZW commented Dec 22, 2025

I don't have merge permissions. @lszskye @lucasfang, pls help it, thanks

@lxy-9602 lxy-9602 merged commit 803e9b3 into alibaba:main Dec 22, 2025
6 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.

5 participants