Skip to content

Commit

Permalink
Merge pull request #1678 from 9rnsr/enforceProp
Browse files Browse the repository at this point in the history
fix property enforcement
  • Loading branch information
monarchdodra committed Nov 1, 2013
2 parents 42eec50 + aa01e5c commit 02d342a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions std/variant.d
Expand Up @@ -504,7 +504,7 @@ private:
{
alias ParamTypes = ParameterTypeTuple!A;
auto p = cast(VariantN*) parm;
auto argCount = p.get!size_t();
auto argCount = p.get!size_t;
// To assign the tuple we need to use the unqualified version,
// otherwise we run into issues such as with const values.
// We still get the actual type from the Variant though
Expand All @@ -517,7 +517,7 @@ private:
auto variantArgs = p[1 .. argCount + 1];
foreach (i, T; ParamTypes)
{
t[i] = cast()variantArgs[i].get!T();
t[i] = cast()variantArgs[i].get!T;
}

auto args = cast(Tuple!(ParamTypes))t;
Expand Down

0 comments on commit 02d342a

Please sign in to comment.