<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[std::string in union...]]></title><description><![CDATA[<p>struct Blub<br />
{<br />
int x;<br />
union<br />
{<br />
int y;<br />
int z;<br />
std::string A;<br />
};<br />
};</p>
<p>Warum geht das nicht? Irgendwas mit Kopierkonstruktor...</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/180776/std-string-in-union</link><generator>RSS for Node</generator><lastBuildDate>Mon, 21 Sep 2026 22:34:46 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/180776.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 06 May 2007 15:23:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to std::string in union... on Sun, 06 May 2007 15:23:37 GMT]]></title><description><![CDATA[<p>struct Blub<br />
{<br />
int x;<br />
union<br />
{<br />
int y;<br />
int z;<br />
std::string A;<br />
};<br />
};</p>
<p>Warum geht das nicht? Irgendwas mit Kopierkonstruktor...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1279726</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1279726</guid><dc:creator><![CDATA[Hilfe1111]]></dc:creator><pubDate>Sun, 06 May 2007 15:23:37 GMT</pubDate></item><item><title><![CDATA[Reply to std::string in union... on Sun, 06 May 2007 16:02:16 GMT]]></title><description><![CDATA[<p>der standard sagt was über typen, die in einer Union sein dürfen:</p>
<p>9.5 schrieb:</p>
<blockquote>
<p>An object of a class with a non-trivial constructor , a non-trivial copy constructor , a non-trivial destructor, or a non-trivial copy assignment operator cannot be a member of a union, nor can an array of such objects.</p>
</blockquote>
<p>Und das erfüllt der String nunmal nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1279738</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1279738</guid><dc:creator><![CDATA[otze]]></dc:creator><pubDate>Sun, 06 May 2007 16:02:16 GMT</pubDate></item></channel></rss>