Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.c++.moderated    |    Moderated discussion of C++ superhackery    |    33,346 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 31,581 of 33,346    |
|    =?ISO-8859-1?Q?Daniel_Kr=FCgler?= to All    |
|    Re: Template argument deduction with lam    |
|    23 Oct 11 14:11:57    |
      1253bd52       From: daniel.kruegler@googlemail.com              Am 22.10.2011 23:20, schrieb Pedro:       > The snippet below fails to compile on gcc 4.6.1. When the       > template argument is provided then the code compiles.              The compiler behaves conforming.              > My theory is       > that this because f below is a lambda not a std::function instance and       > although a conversion exists from one to the other this conversion       > is not used for purposes of template matching. Is that anywhere close       > to what is happening here?              This comes very close, but some further remarks: For an argument of a function       template like              template |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca