Fixing tagged union example (#1301)

It did not compile previously due to missing type specifier on placement new.
This commit is contained in:
Marzo Sette Torres Junior
2018-12-19 16:52:05 +01:00
committed by Jonathan Wakely
parent d822f80d5d
commit f971ad2f17

View File

@@ -8608,7 +8608,7 @@ Saving programmers from having to write such code is one reason for including `v
i = e.i;
break;
case Tag::text:
new(&s)(e.s); // placement new: explicit construct
new(&s) string(e.s); // placement new: explicit construct
type = e.type;
}