用visual studio 2022编写c++代码,使用std::format编译运行时出现debugerror abort() has been called
#include <iostream>
#include <format>
int main() {
int num = _MSC_VER; // get the version
std::cout << std::format("My MSVC version is:{ }", num);
return 0;
}
Debug Error!
Program:C:\VisualStudio\workplacelProject2\x64DebugProject2.exe
abort() has been called
(PressRetry todebug theapplication)
c++版本为 std/c++ latest
这种情况该如何解决?