It is a known bug that to_string
does not work with MinGW yet (which is actually GCC's fault, to a degree):
Intellisense is often driven by a different engine than the compiler (as very few compilers have hooks to make intellisense easy), so that's likely why you're seeing it in your IDE when it's not supported by your compiler.