Why C++ can deduce arguments of template on right side of assignment operator from 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 would compile (with g++). Seems the argument of ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

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