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

Popular posts from this blog

compilation - PHP install fails on Ubuntu 14 (make: *** [sapi/cli/php] Error 1) PHP 5.6.20 -

javascript - return highlighted cells to php -

java - Creating a room by reading from a file (for a game) -