diff options
| author | Eugen Wissner <belka@caraus.de> | 2017-10-06 12:06:47 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2017-10-06 12:06:47 +0200 |
| commit | 85ad88bc4d946d7dfeb97f76b46e963b6046a74e (patch) | |
| tree | 9817a702d4f68622214ec35c8bf115602a58e8f4 | |
| parent | 211f590caa24ab1038682fb5f6d117c031a75159 (diff) | |
| download | tanya-85ad88bc4d946d7dfeb97f76b46e963b6046a74e.tar.gz | |
Rename isPolymorphic into isPolymorphicType
| -rw-r--r-- | source/tanya/memory/package.d | 2 | ||||
| -rw-r--r-- | source/tanya/meta/trait.d | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/source/tanya/memory/package.d b/source/tanya/memory/package.d index 68cabac..e49aaf5 100644 --- a/source/tanya/memory/package.d +++ b/source/tanya/memory/package.d @@ -164,7 +164,7 @@ body */ template stateSize(T) { - static if (isPolymorphic!T) + static if (isPolymorphicType!T) { enum size_t stateSize = __traits(classInstanceSize, T); } diff --git a/source/tanya/meta/trait.d b/source/tanya/meta/trait.d index 956223e..05bda9e 100644 --- a/source/tanya/meta/trait.d +++ b/source/tanya/meta/trait.d @@ -294,7 +294,7 @@ enum bool isStruct(T) = is(T == struct); * Returns: $(D_KEYWORD true) if $(D_PARAM T) is a $(D_KEYWORD class) or an * $(D_KEYWORD interface), $(D_KEYWORD false) otherwise. */ -enum bool isPolymorphic(T) = is(T == class) || is(T == interface); +enum bool isPolymorphicType(T) = is(T == class) || is(T == interface); /// @nogc nothrow pure @safe unittest @@ -302,9 +302,9 @@ enum bool isPolymorphic(T) = is(T == class) || is(T == interface); interface I { } - static assert(isPolymorphic!Object); - static assert(isPolymorphic!I); - static assert(!isPolymorphic!short); + static assert(isPolymorphicType!Object); + static assert(isPolymorphicType!I); + static assert(!isPolymorphicType!short); } /** |
