Walton1128/CPP-Templates-2nd--

P113-std::cref()

Closed this issue · 1 comments

这里语法有误,印刷版已经修正(2018年5月第1版 人民邮电出版社)
image

更正为:

if (isless(std::cref(s), "world")) ... // ERROR
if (isless(std::cref(s),  std::string("world"))) ... // ERROR

已修改