MeouSker77 / Cpp17

本书为《C++17 the complete guide》的个人中文翻译,仅供学习和交流使用,侵删
1.6k stars 255 forks source link

Update ch15.md #14

Closed mingjitianming closed 3 years ago

mingjitianming commented 3 years ago

删除多出的内容

MeouSker77 commented 3 years ago

224行

std::optional o5{"hello"s}; // 推导出optional<string>

"hello"后边的s是string字面量后缀,不能删掉,删掉的话就会推导出optional<const char*>了

mingjitianming commented 3 years ago

l

224行

std::optional o5{"hello"s}; // 推导出optional<string>

"hello"后边的s是string字面量后缀,不能删掉,删掉的话就会推导出optional<const char*>了

ok