From a15b5c5a9ba954c112e8e599e7885d9afb297ac0 Mon Sep 17 00:00:00 2001 From: Krishna Vedala Date: Tue, 26 May 2020 10:06:01 -0400 Subject: [PATCH] MSVC does not know cstring-use string-for toString (cherry picked from commit fe9d2b9bc66ee9f2e5112ced6b6d5aab7d5e5f05) --- others/palindrome_of_number.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/others/palindrome_of_number.cpp b/others/palindrome_of_number.cpp index dda872882..621b09ab6 100644 --- a/others/palindrome_of_number.cpp +++ b/others/palindrome_of_number.cpp @@ -1,6 +1,13 @@ #include #include +#ifdef _MSC_VER +// Required to compile std::toString function using MSVC +#include +#else +#include +#endif + int main() { int num; std::cout << "Enter number = ";