Ok, gotcha.

Placement new is @system, but you wanted to use it in an @safe function iff the constructor to be called is @safe as well.

The reason placement new is @system is because of double-init. It can't be a safe operation.
  • Placement new an... IchorDev via Digitalmars-d-learn
    • Re: Placeme... Dennis via Digitalmars-d-learn
      • Re: Pla... Paul Backus via Digitalmars-d-learn
        • Re:... IchorDev via Digitalmars-d-learn
    • Re: Placeme... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
      • Re: Pla... IchorDev via Digitalmars-d-learn
        • Re:... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
          • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
            • ... IchorDev via Digitalmars-d-learn
              • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
                • ... IchorDev via Digitalmars-d-learn
          • ... Paul Backus via Digitalmars-d-learn
            • ... IchorDev via Digitalmars-d-learn
              • ... Nick Treleaven via Digitalmars-d-learn

Reply via email to