From 4a506f458bc9b5795de38b18b436b7a9ff52c91a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Mon, 21 Nov 2016 20:21:23 +0100 Subject: [PATCH] Make TaggedAlgebraic.Union public. --- source/taggedalgebraic.d | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/taggedalgebraic.d b/source/taggedalgebraic.d index 40e0ad9..31ee09c 100644 --- a/source/taggedalgebraic.d +++ b/source/taggedalgebraic.d @@ -1,7 +1,7 @@ /** * Algebraic data type implementation based on a tagged union. * - * Copyright: Copyright 2015, Sönke Ludwig. + * Copyright: Copyright 2015-2016, Sönke Ludwig. * License: $(WEB www.boost.org/LICENSE_1_0.txt, Boost License 1.0). * Authors: Sönke Ludwig */ @@ -44,7 +44,9 @@ struct TaggedAlgebraic(U) if (is(U == union) || is(U == struct)) import std.string : format; import std.traits : FieldTypeTuple, FieldNameTuple, Largest, hasElaborateCopyConstructor, hasElaborateDestructor; - private alias Union = U; + /// Alias of the type used for defining the possible storage types/kinds. + alias Union = U; + private alias FieldTypes = FieldTypeTuple!U; private alias fieldNames = FieldNameTuple!U;