<?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[Constexpr Problem]]></title><description><![CDATA[<p>Ich nutze Visual Studio 2013 Expr. als Compiler und erhalte bei der Deklaration einer constexpr Variable einen Compiler Fehler.<br />
Beispiel&gt;</p>
<pre><code>#include&lt;iostream&gt;
int main()
{
	constexpr unsigned ArraySize_ = 20;
	int ArrayConstExpr[ArraySize_];
	std::cout &lt;&lt; ArraySize_ &lt;&lt; std::endl;
	return 0;
}
</code></pre>
<p>Fehlermedung:</p>
<blockquote>
<p>Fehler 1 error C2065: 'constexpr': nichtdeklarierter Bezeichner c:\users\tyga\documents\visual studio 2013\projects\testprojekte\testprojekte\HauptModul.cpp 4 1 Testprojekte<br />
Fehler 3 error C2057: Konstanter Ausdruck erwartet c:\users\tyga\documents\visual studio 2013\projects\testprojekte\testprojekte\HauptModul.cpp 5 1 Testprojekte</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/topic/328198/constexpr-problem</link><generator>RSS for Node</generator><lastBuildDate>Wed, 08 Jul 2026 04:41:35 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/328198.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 27 Sep 2014 09:18:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Constexpr Problem on Sat, 27 Sep 2014 09:18:10 GMT]]></title><description><![CDATA[<p>Ich nutze Visual Studio 2013 Expr. als Compiler und erhalte bei der Deklaration einer constexpr Variable einen Compiler Fehler.<br />
Beispiel&gt;</p>
<pre><code>#include&lt;iostream&gt;
int main()
{
	constexpr unsigned ArraySize_ = 20;
	int ArrayConstExpr[ArraySize_];
	std::cout &lt;&lt; ArraySize_ &lt;&lt; std::endl;
	return 0;
}
</code></pre>
<p>Fehlermedung:</p>
<blockquote>
<p>Fehler 1 error C2065: 'constexpr': nichtdeklarierter Bezeichner c:\users\tyga\documents\visual studio 2013\projects\testprojekte\testprojekte\HauptModul.cpp 4 1 Testprojekte<br />
Fehler 3 error C2057: Konstanter Ausdruck erwartet c:\users\tyga\documents\visual studio 2013\projects\testprojekte\testprojekte\HauptModul.cpp 5 1 Testprojekte</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/2419575</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2419575</guid><dc:creator><![CDATA[Tombaa]]></dc:creator><pubDate>Sat, 27 Sep 2014 09:18:10 GMT</pubDate></item><item><title><![CDATA[Reply to Constexpr Problem on Sat, 27 Sep 2014 09:26:35 GMT]]></title><description><![CDATA[<p>Kann VS2013 constexpr?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2419576</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2419576</guid><dc:creator><![CDATA[manni66]]></dc:creator><pubDate>Sat, 27 Sep 2014 09:26:35 GMT</pubDate></item><item><title><![CDATA[Reply to Constexpr Problem on Sat, 27 Sep 2014 09:33:43 GMT]]></title><description><![CDATA[<p>Soviel ich auf MSDN gelesen habe ist diese Funktion noch nicht verfügbar.<br />
Jedoch konnte ich constexpr schon mehrmals anwenden, hmm...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2419578</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2419578</guid><dc:creator><![CDATA[Tombaa]]></dc:creator><pubDate>Sat, 27 Sep 2014 09:33:43 GMT</pubDate></item><item><title><![CDATA[Reply to Constexpr Problem on Sat, 27 Sep 2014 09:53:56 GMT]]></title><description><![CDATA[<p>Evtl. noch das CTP herunterladen: <a href="http://blogs.msdn.com/b/vcblog/archive/2013/11/18/announcing-the-visual-c-compiler-november-2013-ctp.aspx" rel="nofollow">Announcing the Visual C++ Compiler November 2013 CTP</a></p>
<p>Unterschiede s. <a href="http://blogs.msdn.com/b/vcblog/archive/2013/12/02/c-11-14-core-language-features-in-vs-2013-and-the-nov-2013-ctp.aspx" rel="nofollow">C++11/14 Core Language Features in VS 2013 and the Nov 2013 CTP</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2419579</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2419579</guid><dc:creator><![CDATA[Th69]]></dc:creator><pubDate>Sat, 27 Sep 2014 09:53:56 GMT</pubDate></item><item><title><![CDATA[Reply to Constexpr Problem on Sat, 27 Sep 2014 10:35:39 GMT]]></title><description><![CDATA[<p>Du brauchst hier kein <code>constexpr</code> , <code>const</code> reicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2419586</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2419586</guid><dc:creator><![CDATA[Columbo]]></dc:creator><pubDate>Sat, 27 Sep 2014 10:35:39 GMT</pubDate></item></channel></rss>