https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123582
Thomas Schwinge <tschwinge at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #3 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
Jonathan, many thank, again, for bearing with my C++ illiteracy.
(In reply to Jonathan Wakely from comment #2)
> You can swap with a default-constructed temporary, which will restore it to
> a default-constructed state.
>
> Cont{}.swap(c);
Perfect, that works -- and makes very much sense, conceptually.