struct T { };
qux(ts, [](const T&) { return 42; });错误消息为:^~~
prog.cc:4:6: note: candidate template ignored: could not match 'To (const From &)' against '(lambda如果我让qux成为一个非模板函数,用T替换From,用int替换To,
为什么以下示例中的&&参数类型不表现为所谓的“通用引用”,即使它似乎处于“推导的上下文”中,而是被解释为r值: using MyFn = voidthing) {}; // compile error, deduced as int && rather than int& return 0; 而下面这些,我希望它是等价的</e