- why typeid returns that int and const int are same types
- if(typeid(int) == typeid(const int))
- cout << "Same types"<< endl;
- #include <type_traits>
- if (std::is_same<int, const int>::value)
- std::cout << "same typesn";
- else
- std::cout << "different typesn";