<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to delete a vector of pointers in C++?</title>
	<atom:link href="http://www.rhyous.com/2009/11/03/how-to-delete-a-vector-of-pointers-in-c/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rhyous.com/2009/11/03/how-to-delete-a-vector-of-pointers-in-c/</link>
	<description>Knight of the Code</description>
	<lastBuildDate>Sun, 19 May 2013 03:19:28 -0600</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: David</title>
		<link>http://www.rhyous.com/2009/11/03/how-to-delete-a-vector-of-pointers-in-c/#comment-36903</link>
		<dc:creator>David</dc:creator>
		<pubDate>Mon, 22 Oct 2012 21:04:40 +0000</pubDate>
		<guid isPermaLink="false">http://rhyous.com/?p=307#comment-36903</guid>
		<description><![CDATA[I used g++ on linux and cygwin

I just reproduced the same error messages on cygwin
gcc version 4.5.3 (GCC)

The cygwin compilers can be download from:
  http://www.cygwin.com/install.html

( I bet you could use the MSYS distribution with gcc also, but I haven&#039;t tried that
  http://www.mingw.org/wiki/MSYS  ( see http://www.mingw.org/wiki/Getting_Started )
)]]></description>
		<content:encoded><![CDATA[<p>I used g++ on linux and cygwin</p>
<p>I just reproduced the same error messages on cygwin<br />
gcc version 4.5.3 (GCC)</p>
<p>The cygwin compilers can be download from:<br />
  http://www.cygwin.com/install.html</p>
<p>( I bet you could use the MSYS distribution with gcc also, but I haven't tried that<br />
  http://www.mingw.org/wiki/MSYS  ( see http://www.mingw.org/wiki/Getting_Started )<br />
)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rhyous</title>
		<link>http://www.rhyous.com/2009/11/03/how-to-delete-a-vector-of-pointers-in-c/#comment-36901</link>
		<dc:creator>Rhyous</dc:creator>
		<pubDate>Mon, 22 Oct 2012 20:55:25 +0000</pubDate>
		<guid isPermaLink="false">http://rhyous.com/?p=307#comment-36901</guid>
		<description><![CDATA[David,

Can you tell me what compiler you used. I dropped this into VS 2012 on Windows 8 and it works. I don&#039;t have a FreeBSD box to test it with GCC or clang at the moment.]]></description>
		<content:encoded><![CDATA[<p>David,</p>
<p>Can you tell me what compiler you used. I dropped this into VS 2012 on Windows 8 and it works. I don't have a FreeBSD box to test it with GCC or clang at the moment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.rhyous.com/2009/11/03/how-to-delete-a-vector-of-pointers-in-c/#comment-36882</link>
		<dc:creator>David</dc:creator>
		<pubDate>Mon, 22 Oct 2012 16:06:31 +0000</pubDate>
		<guid isPermaLink="false">http://rhyous.com/?p=307#comment-36882</guid>
		<description><![CDATA[Doesn&#039;t compile with more recent compilers...


delete_vector_of_pointers.cpp: In function ‘void deleteVectorOfPointers(T*)’:
delete_vector_of_pointers.cpp:11:5: error: need ‘typename’ before ‘T:: iterator’ because ‘T’ is a dependent scope
delete_vector_of_pointers.cpp:11:17: error: expected ‘;’ before ‘i’
delete_vector_of_pointers.cpp:12:11: error: ‘i’ was not declared in this scope
delete_vector_of_pointers.cpp: In function ‘void deleteVectorOfPointers(T*) [with T = std::vector]’:
delete_vector_of_pointers.cpp:56:36:   instantiated from here
delete_vector_of_pointers.cpp:11:5: error: dependent-name ‘T:: iterator’ is parsed as a non-type, but instantiation yields a type
delete_vector_of_pointers.cpp:11:5: note: say ‘typename T:: iterator’ if a type is meant

changing line 10 to  &quot;vector::iterator i;&quot;]]></description>
		<content:encoded><![CDATA[<p>Doesn't compile with more recent compilers...</p>
<p>delete_vector_of_pointers.cpp: In function ‘void deleteVectorOfPointers(T*)’:<br />
delete_vector_of_pointers.cpp:11:5: error: need ‘typename’ before ‘T:: iterator’ because ‘T’ is a dependent scope<br />
delete_vector_of_pointers.cpp:11:17: error: expected ‘;’ before ‘i’<br />
delete_vector_of_pointers.cpp:12:11: error: ‘i’ was not declared in this scope<br />
delete_vector_of_pointers.cpp: In function ‘void deleteVectorOfPointers(T*) [with T = std::vector]’:<br />
delete_vector_of_pointers.cpp:56:36:   instantiated from here<br />
delete_vector_of_pointers.cpp:11:5: error: dependent-name ‘T:: iterator’ is parsed as a non-type, but instantiation yields a type<br />
delete_vector_of_pointers.cpp:11:5: note: say ‘typename T:: iterator’ if a type is meant</p>
<p>changing line 10 to  "vector::iterator i;"</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced

 Served from: www.rhyous.com @ 2013-05-18 22:23:41 by W3 Total Cache -->