std.traits.isBoolean

Tony tonytdominguez at aol.com
Mon Feb 19 15:12:15 UTC 2018


On Monday, 19 February 2018 at 13:47:15 UTC, Basile B. wrote:

>
> Indeed but Phobos maintainers don't want the ...TypeOf family 
> to be documented.
> (https://github.com/dlang/phobos/pull/5747)

Ok, thanks.

But, assuming there is a use case for it, what if you want to 
restrict to a type that is either boolean, or a struct/class that 
can substitute for boolean - how do you do that without using the 
"private" TypeOfBoolean thing?


More information about the Digitalmars-d-learn mailing list