Namespaces
Variants

std::ios_base::operator=

来自 zh.cppreference.net
 
 
 
 
private:
ios_base& operator=( const ios_base& );
(至C++11止)
public:
ios_base& operator=( const ios_base& ) = delete;
(自C++11起)

拷贝赋值运算符是 私有(至C++11止)弃置(自C++11起): 流不可拷贝赋值。

缺陷报告

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

缺陷报告 适用范围 发布时行为 正确行为
LWG 50 C++98 未指定拷贝赋值运算符 指定为私有成员