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

第二章:编译器版本更新导致结果不正确 #107

Open
Coologs opened this issue Dec 31, 2021 · 0 comments
Open

第二章:编译器版本更新导致结果不正确 #107

Coologs opened this issue Dec 31, 2021 · 0 comments

Comments

@Coologs
Copy link

Coologs commented Dec 31, 2021

auto x1 = 27; //类型是int,值是27
auto x2(27); //同上
auto x3 = { 27 }; //类型是std::initializer_list,
//值是{ 27 }
auto x4{ 27 }; //同上

当gcc编译器大于5.0,auto x4{ 27 }; x4的类型是int 而不是initialized_list

Patricky-Tau added a commit to Patricky-Tau/EffectiveModernCppChinese that referenced this issue Apr 26, 2023
Patricky-Tau added a commit to Patricky-Tau/EffectiveModernCppChinese that referenced this issue Apr 26, 2023
Patricky-Tau added a commit to Patricky-Tau/EffectiveModernCppChinese that referenced this issue Apr 26, 2023
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

No branches or pull requests

1 participant