Arthur Schwarz <aschwarz1...@verizon.net> writes:

> operator=() is private in ios_base. Using private inheritance of
> ios_base the program below fails in the constructor when '=' is used
> (but not during memory initialization). I don't understand why
> assignment is prohibited.

Perhaps I misunderstand your question, but private inheritance does not
grant access to private methods in the parent class.  It merely
prohibits access to the parent class by users of the class.

Ian

Reply via email to