POD(普通旧数据),c++,c++11,templates"/>

首页 > 解决方案 > 为什么不配对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

标签: c++c++11templates

解决方案


推荐阅读