Assuming that &
is not overloaded. How to obtain the address of an instantiated template function, such as std::sort<int*>
? The following won't compile on some compilers:
#include <algorithm>
int main()
{
&std::sort<int*>;
}
ON MSVC v19.21, it reports: https://godbolt.org/z/gpZCdn
error C2568: 'identifier': unable to resolve function overload