Remove a const qualifier from a variable in D
<p>I want to create a non-const copy of a variable.  I am doing this inside a templated function, which has an <code>in ref</code> input, so the type (<code>T</code>) has the const set.  I see a <code>ConstOf</code> function in <a href="https://dlang.org/phobos/std_traits.html" rel="noreferrer">https://dlang.org/phobos/std_traits.html</a> but I cannot find an inverse so I can get a non-const type from <code>T</code>.</p>