StringT.S2

A dummy struct to simulate "tail const".

When a local variable with the type inout(S) has to be defined, one cannot modify it or its members. This issue can be worked around with this struct.

struct StringT(C)
struct S2 {
const(C)* ptr;
const(C)* end;
}

Meta