Fixing tagged union example (#1301)

It did not compile previously due to missing type specifier on placement new.
pull/1305/head
Marzo Sette Torres Junior 7 years ago committed by Jonathan Wakely
parent d822f80d5d
commit f971ad2f17

@ -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;
}

Loading…
Cancel
Save