Should (int) be just int in c++11?
I run compile below code with g++ -std=c++11, it outputs “0”, which is out of my expection.
int num = 0;
int *num_ptr = #
cout<<std::is_same<decltype(num), decltype(*num_ptr)>::value<<endl;//0
New contributor
ppzzyy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.