My gcc version is 4.8.3 20140624. I can use is_pod
, is_trivial
, is_standard_layout
, but fail when trying is_trivially_copyable
, is_constructible
和 is_default_constructible
,也许更多。错误消息是 'xxx' is not a member of 'std'
。
这里有什么问题?他们甚至被当前的 GCC 支持吗?谢谢!
原文由 user3156285 发布,翻译遵循 CC BY-SA 4.0 许可协议
其中一些没有实施。如果我们查看 libstdc++ 的 c++11 状态页面:
类型属性 被列为 部分实现。
他们列为失踪:
话虽如此:
is_constructible
和is_default_constructible
应该可用。我可以在 GCC 4.8.2 中成功使用它们。