Namespaces
Variants
Actions

std::ios_base::operator=

From cppreference.com
< cpp‎ | io‎ | ios base
 
C++
 
Input/output library
 
std::ios_base
private:
ios_base& operator=( const ios_base& );
(until C++11)
public:
ios_base& operator=( const ios_base& ) = delete;
(since C++11)

The copy assignment operator is private(until C++11)deleted(since C++11): streams are not copy-assignable.

[edit] Defect reports

The following behavior-changing defect reports were applied retroactively to previously published C++ standards.

DR Applied to Behavior as published Correct behavior
LWG 50 C++98 the copy assignment operator was not specified specified as private

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant