<?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[string iterator not dereferencable]]></title><description><![CDATA[<p>Bei mir kommt beim Dereferenzieren eines string::const_iterator in folgendem Quelltextauszug der Fehler &quot;string iterator not dereferencable&quot;:</p>
<pre><code class="language-cpp">reference operator*() const
		{	// return designated object
 #if _ITERATOR_DEBUG_LEVEL == 2
		if (this-&gt;_Getcont() == 0
			|| this-&gt;_Ptr == 0
			|| this-&gt;_Ptr &lt; ((_Mystr *)this-&gt;_Getcont())-&gt;_Myptr()
			|| ((_Mystr *)this-&gt;_Getcont())-&gt;_Myptr()
				+ ((_Mystr *)this-&gt;_Getcont())-&gt;_Mysize &lt;= this-&gt;_Ptr)
			{	// report error
			_DEBUG_ERROR(&quot;string iterator not dereferencable&quot;);
			_SCL_SECURE_OUT_OF_RANGE;
			}
</code></pre>
<p>Genauer bei der Abfrage</p>
<pre><code class="language-cpp">|| ((_Mystr *)this-&gt;_Getcont())-&gt;_Myptr()
				+ ((_Mystr *)this-&gt;_Getcont())-&gt;_Mysize &lt;= this-&gt;_Ptr)
</code></pre>
<p>Woran kann das liegen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/271678/string-iterator-not-dereferencable</link><generator>RSS for Node</generator><lastBuildDate>Sat, 29 Aug 2026 07:22:35 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/271678.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 02 Aug 2010 09:05:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to string iterator not dereferencable on Mon, 02 Aug 2010 09:05:26 GMT]]></title><description><![CDATA[<p>Bei mir kommt beim Dereferenzieren eines string::const_iterator in folgendem Quelltextauszug der Fehler &quot;string iterator not dereferencable&quot;:</p>
<pre><code class="language-cpp">reference operator*() const
		{	// return designated object
 #if _ITERATOR_DEBUG_LEVEL == 2
		if (this-&gt;_Getcont() == 0
			|| this-&gt;_Ptr == 0
			|| this-&gt;_Ptr &lt; ((_Mystr *)this-&gt;_Getcont())-&gt;_Myptr()
			|| ((_Mystr *)this-&gt;_Getcont())-&gt;_Myptr()
				+ ((_Mystr *)this-&gt;_Getcont())-&gt;_Mysize &lt;= this-&gt;_Ptr)
			{	// report error
			_DEBUG_ERROR(&quot;string iterator not dereferencable&quot;);
			_SCL_SECURE_OUT_OF_RANGE;
			}
</code></pre>
<p>Genauer bei der Abfrage</p>
<pre><code class="language-cpp">|| ((_Mystr *)this-&gt;_Getcont())-&gt;_Myptr()
				+ ((_Mystr *)this-&gt;_Getcont())-&gt;_Mysize &lt;= this-&gt;_Ptr)
</code></pre>
<p>Woran kann das liegen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1935031</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1935031</guid><dc:creator><![CDATA[dsdfssd]]></dc:creator><pubDate>Mon, 02 Aug 2010 09:05:26 GMT</pubDate></item><item><title><![CDATA[Reply to string iterator not dereferencable on Mon, 02 Aug 2010 09:20:04 GMT]]></title><description><![CDATA[<p>Habs hinbekommen. Man musste vor dem Dereferenzieren testen, ob das Ende schon erreicht ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1935038</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1935038</guid><dc:creator><![CDATA[fdgfdg]]></dc:creator><pubDate>Mon, 02 Aug 2010 09:20:04 GMT</pubDate></item></channel></rss>