Why can C++ deduce template arguments on the right side of an assignment operator from the left side? – stackoverflow.com

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

Artikel Terkait

0 Comment to "Why can C++ deduce template arguments on the right side of an assignment operator from the left side? – stackoverflow.com"