template<class T> std::vector<T> convert(int argument) { } int main() { decltype(&convert<int>); return 0; }
The following is this error for Visual Studio 2010:
error C3555: incorrect argument to 'decltype'
Why?
I am trying to create std :: map where the key is an enumeration and the value is a function.
source share