Template picks const reference over const pointer – stackoverflow.com

Consider the following: template <class T> void Foo(const T* x) { std::cout << "I am the pointer overload" << std::endl; } template <class T> void Foo(const T& x) { ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Template picks const reference over const pointer – stackoverflow.com"