metaprogramming - Remove a const qualifier from a variable in D -
i want create non-const copy of variable. doing inside templated function, has in ref
input, type (t
) has const set. see constof
function in https://dlang.org/phobos/std_traits.html cannot find inverse can non-const type t
.
you might interested in std.traits.unqual
.
note gives type all qualifiers removed, not const
.
Comments
Post a Comment