标签: c++ templates lambda
我是否正确理解以下代码将导致模板化函数fun的两个不同实例?
fun
template<class F> void fun ( F f ) { f(); } // first call. fun( []() {} ); // same call as before, but will result // in another instantiation of "fun" fun( []() {} );