Namespaces
Variants

std::ios_base:: operator=

From cppreference.net
private :
ios_base & operator = ( const ios_base & ) ;
(C++11 前)
public :
ios_base & operator = ( const ios_base & ) = delete ;
(C++11 起)

复制赋值运算符是 private (until C++11) deleted (since C++11) :流不可复制赋值。

缺陷报告

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

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