void main()
{
    struct S { int payload; }

    S* s = new shared (S); // Why this is a illegal?
}


Error: cannot implicitly convert expression (new shared(S)) of type shared(S)* to S*

Reply via email to