0
#include <iostream>
using namespace std;
void fun(int i)
{
cout<<"Called with int "<<i;
}
void main()
{
using df = decltype(&fun);
}
나는 형 앨리어싱을 지원하지 않습니다, 프로젝트 디렉토리에 따라,왜이 간단한 코드에서 구문 오류가 발생합니까?
Error 1 error C2143: syntax error : missing ';' before '=' c:\users\kpranit\documents\visual studio 2012\projects\sample\sample\sample.cpp 12
Error 2 error C2873: 'df' : symbol cannot be used in a using-declaration c:\users\kpranit\documents\visual studio 2012\projects\sample\sample\sample.cpp 12
나를 위해 작동합니다. – BWG
해당 버전의 컴파일러가 너무 오래되었습니다. 최신 버전을 사용해 보시겠습니까? –