--- Comment #4 from Jonathan M Davis <> 2010-10-27 15:50:46 
PDT ---
All it takes is assigning to a public member variable or a reference to private
member data, and you can invalidate an invariant. Granted, having an invariant
with a type where you can do that, isn't necessarily the best idea, but it's
quite possible to have a type where you have an invariant and it's invalid
before opAssign() (or any public function) is called, and, unlike most public
functions, there's no need for the invariant to be true before opAssign() is

Of course, what would really help here would be proper default constructors for
structs, but no one has been able to figure that one out yet it seems.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to