0
Follow
4
View

Which header file or definitions to use for using char8_t data type in C++?

devil_2103 注册会员
6 days ago

char8_t is a keyword. It's built into the language, so you don't need any headers.

If it doesn't work, either your compiler doesn't support it, or you forgot to enable C++20 support (e.g. -std=c++20 in GCC).

B8399083 注册会员
6 days ago

The problem here is possibly the compiler is not able to identify that this is a C++20 feature.

Compile using this: g++ -Wall -std=c++20 "yourFileName".cpp

replace youFileName with that of the file name.

About the Author

Question Info

Publish Time
6 days ago
Update Time
6 days ago

Related Question

Cloudfront缓存行为通配符

在OrderedDict中从一个键迭代到另一个键

H2数据库与多个测试类在SpringBoot

为什么我的React应用程序不显示React功能?

【CSDN 每日一练】套盒子 测试通过率10%

ReactJS / Webpack(文件被这些加载器处理:)

如何在nodejs应用程序中模拟CPU工作负载?

安装opencv4nodejs后运行报错

为什么在termux工作sudo ifconfig wlan0下降,但sudo ifconfig wlan0上升不是吗?

为什么np.linalg.solve在尝试求解16x16方程组时给我一个错误?