Namespaces
Variants

std::gslice_array<T>:: gslice_array

From cppreference.net

(1)
private :
gslice_array ( ) ;
(C++11 前)
public :
gslice_array ( ) = delete ;
(C++11 起)
public :
gslice_array ( const gslice_array & other ) ;
(2)
1) 默认构造函数被 声明为私有且未定义 (C++11 前) 显式定义为删除 (C++11 起) gslice_array 不满足 DefaultConstructible 要求。
2) 从另一个 gslice_array other 构造一个 gslice_array

参数

其他 - 用于初始化的 gslice_array

缺陷报告

以下行为变更缺陷报告被追溯应用于先前发布的C++标准。

DR 适用范围 发布时的行为 正确行为
LWG 253 C++98 拷贝构造函数为私有 改为公开