c++ - 为什么不配对POD(普通旧数据)
问题描述
POD 的定义:https ://en.cppreference.com/w/cpp/named_req/PODType
pair<int,int>
似乎符合上述所有规则。
但是编译并运行
cout << is_pod<pair<int, int>>::value << endl;
给我0。
我正在使用 g++ 8.2.0
解决方案
推荐阅读
- html - 无法让页脚左右对齐
- c# - 如何获取要发布到控制器的复选框值列表
- javascript - TS2339:“元素”类型上不存在属性“样式”
- reactjs - 为 Material-Table 创建自定义模态
- user-interface - 如何正确设计高 DPI 感知(4k 就绪)的 Delphi 应用程序 UI?
- amazon-s3 - S3 网络托管端点产生“无法访问此站点”
- python - 使用python进行一次热编码的快速方法
- python-3.x - 进行 for 循环,直到某个条件变为不真实
- postgresql - 条件导致 postgres 查询的结果
- tabulator - 值为 false 的制表符链接