我看到一个代码,使用narrow_cast这样的
int num = narrow_cast<int>(26.72);
cout << num;
Run Code Online (Sandbox Code Playgroud)
问题是我的编译器说:
'narrow_cast' was not decleared in this scope.
Run Code Online (Sandbox Code Playgroud)
我应该定义narrow_cast自己还是我使用错误的方式或者没有类似的东西narrow_cast?