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

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -