<?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[#define für c++0x standard]]></title><description><![CDATA[<p>Hallo,</p>
<p>gibt es eine vordefinierte define Anweisung um Code auszukommentieren, wenn der Compiler den c++0x Standard noch nicht unterstützt.<br />
In meinem Falle versuche ich ein Programm mit nvcc zu kompilieren, verwende aber Teile einer Funktions- und Klassensammlung, die bereits den Move-Konstruktor unterstützt. Das gefällt nvcc wohl nicht so.</p>
<p>Ich suche etwas wie</p>
<pre><code class="language-cpp">#ifdef _C++0X_
// Move-Konstruktor hier //
#endif
</code></pre>
<p>Gibt es da etwas? Oder muss ich das von Hand dem Compiler übergeben?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/273208/define-für-c-0x-standard</link><generator>RSS for Node</generator><lastBuildDate>Fri, 28 Aug 2026 08:35:26 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/273208.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 02 Sep 2010 12:18:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to #define für c++0x standard on Thu, 02 Sep 2010 12:18:18 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>gibt es eine vordefinierte define Anweisung um Code auszukommentieren, wenn der Compiler den c++0x Standard noch nicht unterstützt.<br />
In meinem Falle versuche ich ein Programm mit nvcc zu kompilieren, verwende aber Teile einer Funktions- und Klassensammlung, die bereits den Move-Konstruktor unterstützt. Das gefällt nvcc wohl nicht so.</p>
<p>Ich suche etwas wie</p>
<pre><code class="language-cpp">#ifdef _C++0X_
// Move-Konstruktor hier //
#endif
</code></pre>
<p>Gibt es da etwas? Oder muss ich das von Hand dem Compiler übergeben?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1947317</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1947317</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Thu, 02 Sep 2010 12:18:18 GMT</pubDate></item><item><title><![CDATA[Reply to #define für c++0x standard on Thu, 02 Sep 2010 12:33:50 GMT]]></title><description><![CDATA[<p>Gibt es nicht. Es ergibt auch eher Sinn, die herstellerspezifischen Makros für die Compilerversion abzufragen. Die unterschiedlichen Compiler und deren Versionen unterstützen den Standard jeweils unterschiedlich gut. Selbst ISO/IEC 14882:2003 unterstützt kaum ein Compiler so richtig vollständig. Die meisten aktuellen Compiler sind allerdings nahe an der Vollständigkeit dran.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1947324</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1947324</guid><dc:creator><![CDATA[Tachyon]]></dc:creator><pubDate>Thu, 02 Sep 2010 12:33:50 GMT</pubDate></item><item><title><![CDATA[Reply to #define für c++0x standard on Thu, 02 Sep 2010 12:35:35 GMT]]></title><description><![CDATA[<p>Sowas?</p>
<pre><code class="language-cpp">#ifdef CPLUSPLUS_0X
 #define CPP0X_PART(Code) Code
#else
 #define CPP0X_PART(Code)
#endif
</code></pre>
<p>Anwendung:</p>
<pre><code class="language-cpp">CPP0X_PART(
    // dein Move-Konstruktor hier
)
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1947326</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1947326</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Thu, 02 Sep 2010 12:35:35 GMT</pubDate></item><item><title><![CDATA[Reply to #define für c++0x standard on Thu, 02 Sep 2010 12:45:19 GMT]]></title><description><![CDATA[<p>Das <code>__cplusplus</code> -Makro hat doch in C++98 den Wert 199711L (für Nov. 1997, das Verabschiedungsdatum anscheinend). Sollte es dann nicht auch für C++0x einen entsprechenden Wert geben?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1947333</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1947333</guid><dc:creator><![CDATA[Bashar]]></dc:creator><pubDate>Thu, 02 Sep 2010 12:45:19 GMT</pubDate></item><item><title><![CDATA[Reply to #define für c++0x standard on Thu, 02 Sep 2010 13:00:09 GMT]]></title><description><![CDATA[<p>Hilfe naht: <a href="http://c-plusplus.net/forum/viewtopic-var-t-is-272600.html" rel="nofollow">http://c-plusplus.net/forum/viewtopic-var-t-is-272600.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1947335</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1947335</guid><dc:creator><![CDATA[_SUPERMAN_]]></dc:creator><pubDate>Thu, 02 Sep 2010 13:00:09 GMT</pubDate></item><item><title><![CDATA[Reply to #define für c++0x standard on Thu, 02 Sep 2010 13:10:51 GMT]]></title><description><![CDATA[<p>Nexus schrieb:</p>
<blockquote>
<p>[...]</p>
</blockquote>
<p>Das das zwingend definiert?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1947337</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1947337</guid><dc:creator><![CDATA[Tachyon]]></dc:creator><pubDate>Thu, 02 Sep 2010 13:10:51 GMT</pubDate></item><item><title><![CDATA[Reply to #define für c++0x standard on Thu, 02 Sep 2010 13:25:44 GMT]]></title><description><![CDATA[<p>Oh super. Vielen Dank!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1947345</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1947345</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Thu, 02 Sep 2010 13:25:44 GMT</pubDate></item><item><title><![CDATA[Reply to #define für c++0x standard on Thu, 02 Sep 2010 13:30:52 GMT]]></title><description><![CDATA[<p>Tachyon schrieb:</p>
<blockquote>
<p>Das das zwingend definiert?</p>
</blockquote>
<p>Sorry, falls das falsch rüberkam: <code>CPLUSPLUS_0X</code> ist kein offizielles Makro, sondern ein von mir erfundener Platzhalter. Entweder man setzt ihn selbst projektweit, oder man orientiert sich an Bashars Ansatz.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1947346</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1947346</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Thu, 02 Sep 2010 13:30:52 GMT</pubDate></item><item><title><![CDATA[Reply to #define für c++0x standard on Thu, 02 Sep 2010 13:33:49 GMT]]></title><description><![CDATA[<p>Bashar schrieb:</p>
<blockquote>
<p>Das <code>__cplusplus</code> -Makro hat doch in C++98 den Wert 199711L (für Nov. 1997, das Verabschiedungsdatum anscheinend). Sollte es dann nicht auch für C++0x einen entsprechenden Wert geben?</p>
</blockquote>
<p>Wird es geben, nur ist er noch nicht definiert. Im aktuellen Draft <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3126.pdf" rel="nofollow">n3126</a> auf Seite 411 (tatsächlich 425) steht als Wert noch ein [tbd] (&quot;to be discussed&quot;, &quot;to be done&quot;, &quot;to be defined&quot;, &quot;to be decided&quot;, &quot;to be determined&quot; oder was auch immer).</p>
<p>Grüssli</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1947349</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1947349</guid><dc:creator><![CDATA[Dravere]]></dc:creator><pubDate>Thu, 02 Sep 2010 13:33:49 GMT</pubDate></item></channel></rss>