小编Lek*_*kan的帖子

窄播有什么作用?

我看到一个代码,使用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

c++ guideline-support-library

3
推荐指数
2
解决办法
3102
查看次数

标签 统计

c++ ×1

guideline-support-library ×1