Why can C++ deduce template arguments on the right side of an assignment operator from the left side? – stackoverflow.com 08:20 Posted by Unknown No Comments template <typename T> void func(T&){ } int main(){ void (*p)(int&) = func;//or &func return 0; } I wonder why this code compiles (with g++). It seems the argument of ... from Hot Questions - Stack Exchange OnStackOverflow via Blogspot Share this Google Facebook Twitter More Digg Linkedin Stumbleupon Delicious Tumblr BufferApp Pocket Evernote Unknown Artikel TerkaitShowing surjectivity – math.stackexchange.comCan I refuse to choose seats with additional cost at check-in time? – travel.stackexchange.comGenerate white noise in 2D – mathematica.stackexchange.comIdentifying the type of wallet that's being used? – bitcoin.stackexchange.comWhy does this comparator not output a square wave? – electronics.stackexchange.comHow to distinguish ham from spam – meta.stackexchange.com
0 Comment to "Why can C++ deduce template arguments on the right side of an assignment operator from the left side? – stackoverflow.com"
Post a Comment