[Issue 4424] Copy constructor and templated opAssign cannot coexist

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Oct 3 07:04:21 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=4424


Benjamin Thaut <code at benjamin-thaut.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code at benjamin-thaut.de


--- Comment #7 from Benjamin Thaut <code at benjamin-thaut.de> 2012-10-03 07:04:16 PDT ---
(In reply to comment #6)
> I've hit this one today and failed to workaround it in any acceptable way.

This is the workaround used in phobos, it works pretty well for me too.

  private mixin template _workaround4424()
  {
    @disable void opAssign(typeof(this) );
  }
  mixin _workaround4424;

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list