struct RefCountingStruct { private struct Impl { // implementation hereint refcount; } Impl* payload; alias payload this;
Isn't it exactly what Phobos RefCounted does?
struct RefCountingStruct { private struct Impl { // implementation hereint refcount; } Impl* payload; alias payload this;
Isn't it exactly what Phobos RefCounted does?