Skip to content

Commit

Permalink
Merge pull request #3143 from 9rnsr/fix14401
Browse files Browse the repository at this point in the history
Supplemental fix for issue 14401 - Deal with the type change of typeid(ClassType).init to const(void)[]
  • Loading branch information
schveiguy committed Apr 3, 2015
2 parents 4d30c1d + 9f68938 commit 3ffc006
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/conv.d
Expand Up @@ -4990,7 +4990,7 @@ T emplace(T, Args...)(void[] chunk, auto ref Args args)
auto result = cast(T) chunk.ptr;

// Initialize the object in its pre-ctor state
(cast(byte[]) chunk)[0 .. classSize] = typeid(T).init[];
chunk[0 .. classSize] = typeid(T).init[];

// Call the ctor if any
static if (is(typeof(result.__ctor(args))))
Expand Down

0 comments on commit 3ffc006

Please sign in to comment.