www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - How useful are ConstOf, SharedConstOf, ... in std.traits?

reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.com> writes:
I just added https://github.com/dlang/phobos/pull/8048. The 
spirit is strong but the flesh can't stop wondering: how 
necessary are these templates out there in the wild? I see uses 
in std.variant and std.sumtype, which strike me as niche.

Are there solid use cases for these templates?
May 05
parent Basile B. <b2.temp gmx.com> writes:
On Wednesday, 5 May 2021 at 22:04:33 UTC, Andrei Alexandrescu 
wrote:
 I just added https://github.com/dlang/phobos/pull/8048. The 
 spirit is strong but the flesh can't stop wondering: how 
 necessary are these templates out there in the wild? I see uses 
 in std.variant and std.sumtype, which strike me as niche.

 Are there solid use cases for these templates?
related https://issues.dlang.org/show_bug.cgi?id=20740
May 05