Tired by deprecation message for unary operators on 8/16 bit vars ? A simple solution

Basile B. b2.temp at gmx.com
Thu Jun 7 15:52:10 UTC 2018


On Thursday, 7 June 2018 at 15:18:49 UTC, H. S. Teoh wrote:
> On Thu, Jun 07, 2018 at 01:42:17PM +0000, Basile B. via 
> Digitalmars-d wrote:
>> [...]
> [...]
>
> You're on the right track. Now all you have to do is to add 
> operator overloading to make the wrapper type infectious, and a 
> convenience function that can be easily typed, and you get:
>
> [...]

Yeah nice, but it can be more simply used _just_ when the unary 
operator would lead to the message (with ctor: ~SomeType(...).


More information about the Digitalmars-d mailing list