The OpenD Programming Language

ImplicitConversionTargets

deprecated
template ImplicitConversionTargets (
T
) {}

Parameters

T

The type to check

Warning: This template is considered out-dated. It will be removed from Phobos in 2.107.0. Please use AllImplicitConversionTargets instead.

Return Value

An std.meta.AliasSeq with all possible target types of an implicit conversion T.

If T is a class derived from Object, the result of TransitiveBaseTypeTuple is returned.

If the type is not a built-in value type or a class derived from Object, an empty std.meta.AliasSeq is returned.

Note: The possible targets are computed more conservatively than the language allows, eliminating all dangerous conversions. For example, ImplicitConversionTargets!double does not include float.

See Also

Meta