<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>What Are SCARY Iterators?</title><link>http://blogs.msdn.com/b/vcblog/archive/2012/04/06/10291485.aspx</link><description>Hi there! I&amp;rsquo;m Diego Dagum, a Program Manager with the Visual C++ team. 
 As Stephan announced last September when Visual Studio 11 Developer Preview was released , our STL implementation comes with SCARY iterators . On Stephan&amp;rsquo;s words, </description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: What Are SCARY Iterators?</title><link>http://blogs.msdn.com/b/vcblog/archive/2012/04/06/10291485.aspx#10292218</link><pubDate>Tue, 10 Apr 2012 12:57:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10292218</guid><dc:creator>CornedBee</dc:creator><description>&lt;p&gt;&amp;gt; First, the STL gets to break binary compatibility between major releases (which is wonderful). &lt;/p&gt;
&lt;p&gt;Yes ... and starting with VS10 it even refuses to link against incompatible versions (provided they are VS10+ too), which is also wonderful. Of course, that only means that I&amp;#39;m protected against linking my VS11 program against a VS10 library, not my VS10 program against a VS8 library. If you do that, you still get surprising runtime crashes.&lt;/p&gt;
&lt;p&gt;To think that you guys implemented a compiler/linker extension to achieve this, when the C++11 standard has inline namespaces to achieve the same thing, only in a way that would protect against the second class of errors too.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10292218" width="1" height="1"&gt;</description></item><item><title>re: What Are SCARY Iterators?</title><link>http://blogs.msdn.com/b/vcblog/archive/2012/04/06/10291485.aspx#10291882</link><pubDate>Mon, 09 Apr 2012 13:38:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10291882</guid><dc:creator>Stephan T. Lavavej - MSFT</dc:creator><description>&lt;p&gt;Narom: First, the STL gets to break binary compatibility between major releases (which is wonderful). Second, I have an idea to reduce the cost of our extensive correctness checks in debug mode, which I&amp;#39;d like to try someday. (Currently, we track iterators with a singly-linked list; I suspect that a doubly-linked list would be significantly more efficient when a container has many iterators.) However, it will always be quite expensive in absolute terms, since we need to take locks for operations that look like reads.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10291882" width="1" height="1"&gt;</description></item><item><title>re: What Are SCARY Iterators?</title><link>http://blogs.msdn.com/b/vcblog/archive/2012/04/06/10291485.aspx#10291708</link><pubDate>Sun, 08 Apr 2012 04:12:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10291708</guid><dc:creator>Sarfaraz</dc:creator><description>&lt;p&gt;I think the acronym RAII (for &amp;quot;Resource Acquisition Is Initialization&amp;quot;) &amp;nbsp;was given by Bjarne Stroustrup himself.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10291708" width="1" height="1"&gt;</description></item><item><title>re: What Are SCARY Iterators?</title><link>http://blogs.msdn.com/b/vcblog/archive/2012/04/06/10291485.aspx#10291656</link><pubDate>Sat, 07 Apr 2012 14:28:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10291656</guid><dc:creator>Narom</dc:creator><description>&lt;p&gt;Hi, thanks for improvements! Maybe you can (binary compatibly!) reduce the increadible slowdown of iterators in debug mode in next release? Try something like std:vector&amp;lt;std:list&amp;lt;int&amp;gt;:iterator&amp;gt;. That would be Great!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10291656" width="1" height="1"&gt;</description></item><item><title>re: What Are SCARY Iterators?</title><link>http://blogs.msdn.com/b/vcblog/archive/2012/04/06/10291485.aspx#10291500</link><pubDate>Fri, 06 Apr 2012 17:53:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10291500</guid><dc:creator>Diego Dagum - MSFT</dc:creator><description>&lt;p&gt;Indeed it is harder, fery. But have you been following the syntax improvements achieved with the latest standard C++11? I recommend you this reading by Herb Sutter as I see you talking about garbage collection and I feel, correct me if I&amp;#39;m wrong, like you may not be aware about improvements like smart pointers in this case. Herb&amp;#39;s paper is here: &lt;a rel="nofollow" target="_new" href="http://herbsutter.com/elements-of-modern-c-style/"&gt;herbsutter.com/elements-of-modern-c-style&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10291500" width="1" height="1"&gt;</description></item><item><title>re: What Are SCARY Iterators?</title><link>http://blogs.msdn.com/b/vcblog/archive/2012/04/06/10291485.aspx#10291496</link><pubDate>Fri, 06 Apr 2012 17:24:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10291496</guid><dc:creator>fery</dc:creator><description>&lt;p&gt;C++ syntax is very hard.Microsoft must implement new native language such as C# syntax.&lt;/p&gt;
&lt;p&gt;C++ is depend to 1980.&lt;/p&gt;
&lt;p&gt;new native language with garbage collection and ...&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10291496" width="1" height="1"&gt;</description></item><item><title>re: What Are SCARY Iterators?</title><link>http://blogs.msdn.com/b/vcblog/archive/2012/04/06/10291485.aspx#10291491</link><pubDate>Fri, 06 Apr 2012 17:00:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10291491</guid><dc:creator>Diego Dagum - MSFT</dc:creator><description>&lt;p&gt;Yeah... I&amp;#39;m not a 100% sure but I believe that he&amp;#39;s the same guy who created the acronym RAII (Resource Acquisition Is Initialization). Although if I&amp;#39;m right about the guy, he still owns the credits for having invented the programming language which, without it, we wouldn&amp;#39;t be discussing in this space. :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10291491" width="1" height="1"&gt;</description></item><item><title>re: What Are SCARY Iterators?</title><link>http://blogs.msdn.com/b/vcblog/archive/2012/04/06/10291485.aspx#10291488</link><pubDate>Fri, 06 Apr 2012 16:50:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10291488</guid><dc:creator>Ash</dc:creator><description>&lt;p&gt;The person who coined the name certainly went to unimaginable lengths to come up with a cool name!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10291488" width="1" height="1"&gt;</description></item></channel></rss>