<?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: Working on the subject observer pattern</title>
	<atom:link href="http://rtmatheson.com/2010/03/working-on-the-subject-observer-pattern/feed/" rel="self" type="application/rss+xml" />
	<link>http://rtmatheson.com/2010/03/working-on-the-subject-observer-pattern/</link>
	<description>My name is Stewart Matheson. I work with code, servers and anything else that makes the web work.  I am also avaiable for hire to help you with any of your projects.</description>
	<lastBuildDate>Fri, 25 Nov 2011 00:01:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: stabil</title>
		<link>http://rtmatheson.com/2010/03/working-on-the-subject-observer-pattern/comment-page-1/#comment-4095</link>
		<dc:creator>stabil</dc:creator>
		<pubDate>Tue, 09 Aug 2011 12:17:48 +0000</pubDate>
		<guid isPermaLink="false">http://rtmatheson.com/?p=135#comment-4095</guid>
		<description>Actually, osk&#039;s solution is corrupted, too (due to the comments lack to handle angle brackets, I guess).

std::vector::iterator iter;
needs to be changed to
std::vector[Observer*]::iterator iter;

(hoping that brackets won&#039;t get corrupted here)</description>
		<content:encoded><![CDATA[<p>Actually, osk&#8217;s solution is corrupted, too (due to the comments lack to handle angle brackets, I guess).</p>
<p>std::vector::iterator iter;<br />
needs to be changed to<br />
std::vector[Observer*]::iterator iter;</p>
<p>(hoping that brackets won&#8217;t get corrupted here)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stewart Matheson</title>
		<link>http://rtmatheson.com/2010/03/working-on-the-subject-observer-pattern/comment-page-1/#comment-3645</link>
		<dc:creator>Stewart Matheson</dc:creator>
		<pubDate>Mon, 20 Jun 2011 02:21:18 +0000</pubDate>
		<guid isPermaLink="false">http://rtmatheson.com/?p=135#comment-3645</guid>
		<description>Thanks for posting this here. I hope it can help out others.</description>
		<content:encoded><![CDATA[<p>Thanks for posting this here. I hope it can help out others.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: osk</title>
		<link>http://rtmatheson.com/2010/03/working-on-the-subject-observer-pattern/comment-page-1/#comment-3579</link>
		<dc:creator>osk</dc:creator>
		<pubDate>Thu, 02 Jun 2011 14:44:45 +0000</pubDate>
		<guid isPermaLink="false">http://rtmatheson.com/?p=135#comment-3579</guid>
		<description>**** FIXED ****

Hi, I just found out how to compile the code in MVC++ 2008/2010. The following changes must be made:

#include&lt;iostream] //needed for the “couts”

//then from
std::vector observers;

//to
std::vector&lt;Observer*] observers; //needs to be a pointer, coz you can’t instantiate an abstract class

//from
std::vector::iterator iter;

//to
std::vector&quot;

Those were my two cents. Hope this helps someone else out there.</description>
		<content:encoded><![CDATA[<p>**** FIXED ****</p>
<p>Hi, I just found out how to compile the code in MVC++ 2008/2010. The following changes must be made:</p>
<p>#include&lt;iostream] //needed for the “couts”</p>
<p>//then from<br />
std::vector observers;</p>
<p>//to<br />
std::vector&lt;Observer*] observers; //needs to be a pointer, coz you can’t instantiate an abstract class</p>
<p>//from<br />
std::vector::iterator iter;</p>
<p>//to<br />
std::vector&#8221;</p>
<p>Those were my two cents. Hope this helps someone else out there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: osk</title>
		<link>http://rtmatheson.com/2010/03/working-on-the-subject-observer-pattern/comment-page-1/#comment-3578</link>
		<dc:creator>osk</dc:creator>
		<pubDate>Thu, 02 Jun 2011 14:41:14 +0000</pubDate>
		<guid isPermaLink="false">http://rtmatheson.com/?p=135#comment-3578</guid>
		<description>#include </description>
		<content:encoded><![CDATA[<p>#include</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: osk</title>
		<link>http://rtmatheson.com/2010/03/working-on-the-subject-observer-pattern/comment-page-1/#comment-3577</link>
		<dc:creator>osk</dc:creator>
		<pubDate>Thu, 02 Jun 2011 14:40:27 +0000</pubDate>
		<guid isPermaLink="false">http://rtmatheson.com/?p=135#comment-3577</guid>
		<description>Hi, I just found out how to compile the code in MVC++ 2008/2010. The following changes must be made:

#include   //needed for the &quot;couts&quot;

//then from
std::vector observers;

//to
std::vector observers; //needs to be a pointer, coz you can&#039;t instantiate an abstract class

//from
std::vector::iterator iter;

//to
std::vector::iterator iter;

Those were my two cents. Hope this helps someone else out there.</description>
		<content:encoded><![CDATA[<p>Hi, I just found out how to compile the code in MVC++ 2008/2010. The following changes must be made:</p>
<p>#include   //needed for the &#8220;couts&#8221;</p>
<p>//then from<br />
std::vector observers;</p>
<p>//to<br />
std::vector observers; //needs to be a pointer, coz you can&#8217;t instantiate an abstract class</p>
<p>//from<br />
std::vector::iterator iter;</p>
<p>//to<br />
std::vector::iterator iter;</p>
<p>Those were my two cents. Hope this helps someone else out there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: osk</title>
		<link>http://rtmatheson.com/2010/03/working-on-the-subject-observer-pattern/comment-page-1/#comment-3573</link>
		<dc:creator>osk</dc:creator>
		<pubDate>Thu, 02 Jun 2011 06:37:24 +0000</pubDate>
		<guid isPermaLink="false">http://rtmatheson.com/?p=135#comment-3573</guid>
		<description>Well thanks anyway, you have been very kind and helpful. The world needs more people like you :)  I&#039;ll do more research and hopefully get to compile that code under MVC++. Greetings from Costa Rica! Peace</description>
		<content:encoded><![CDATA[<p>Well thanks anyway, you have been very kind and helpful. The world needs more people like you <img src='http://rtmatheson.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   I&#8217;ll do more research and hopefully get to compile that code under MVC++. Greetings from Costa Rica! Peace</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stewart Matheson</title>
		<link>http://rtmatheson.com/2010/03/working-on-the-subject-observer-pattern/comment-page-1/#comment-3572</link>
		<dc:creator>Stewart Matheson</dc:creator>
		<pubDate>Thu, 02 Jun 2011 06:32:54 +0000</pubDate>
		<guid isPermaLink="false">http://rtmatheson.com/?p=135#comment-3572</guid>
		<description>Well I can confirm this compiles with gcc the GNU c++ compiler. I have had very little experience with Microsoft Visual C++ nor do I have a windows machine so I cant be any help there. I would firstly confirm with an example how the generic template syntax works under Visual C++. I would also check the way to iterate over vectors as there seems to be an issue there as well. Sorry I can not be more help.</description>
		<content:encoded><![CDATA[<p>Well I can confirm this compiles with gcc the GNU c++ compiler. I have had very little experience with Microsoft Visual C++ nor do I have a windows machine so I cant be any help there. I would firstly confirm with an example how the generic template syntax works under Visual C++. I would also check the way to iterate over vectors as there seems to be an issue there as well. Sorry I can not be more help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: osk</title>
		<link>http://rtmatheson.com/2010/03/working-on-the-subject-observer-pattern/comment-page-1/#comment-3571</link>
		<dc:creator>osk</dc:creator>
		<pubDate>Thu, 02 Jun 2011 06:23:25 +0000</pubDate>
		<guid isPermaLink="false">http://rtmatheson.com/?p=135#comment-3571</guid>
		<description>Wow! thanks for you super fast answer! I&#039;m using Microsoft Visual C++ 2008, XP.</description>
		<content:encoded><![CDATA[<p>Wow! thanks for you super fast answer! I&#8217;m using Microsoft Visual C++ 2008, XP.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: osk</title>
		<link>http://rtmatheson.com/2010/03/working-on-the-subject-observer-pattern/comment-page-1/#comment-3570</link>
		<dc:creator>osk</dc:creator>
		<pubDate>Thu, 02 Jun 2011 06:22:28 +0000</pubDate>
		<guid isPermaLink="false">http://rtmatheson.com/?p=135#comment-3570</guid>
		<description>error C2955: &#039;std::vector&#039; : use of class template requires template argument list

error C2955: &#039;std::vector&#039; : use of class template requires template argument list

error C2133: &#039;iter&#039; : unknown size

error C2512: std::_Vector_iterator&lt;_Ty,_Alloc::rebind::other&gt;&#039; : no appropriate default constructor available

error C2663: &#039;std::vector::begin&#039; : 2 overloads have no legal conversion for &#039;this&#039; pointer

error C2663: &#039;std::vector::end&#039; : 2 overloads have no legal conversion for &#039;this&#039; pointer</description>
		<content:encoded><![CDATA[<p>error C2955: &#8216;std::vector&#8217; : use of class template requires template argument list</p>
<p>error C2955: &#8216;std::vector&#8217; : use of class template requires template argument list</p>
<p>error C2133: &#8216;iter&#8217; : unknown size</p>
<p>error C2512: std::_Vector_iterator&lt;_Ty,_Alloc::rebind::other&gt;&#8217; : no appropriate default constructor available</p>
<p>error C2663: &#8216;std::vector::begin&#8217; : 2 overloads have no legal conversion for &#8216;this&#8217; pointer</p>
<p>error C2663: &#8216;std::vector::end&#8217; : 2 overloads have no legal conversion for &#8216;this&#8217; pointer</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stewart Matheson</title>
		<link>http://rtmatheson.com/2010/03/working-on-the-subject-observer-pattern/comment-page-1/#comment-3568</link>
		<dc:creator>Stewart Matheson</dc:creator>
		<pubDate>Thu, 02 Jun 2011 06:19:55 +0000</pubDate>
		<guid isPermaLink="false">http://rtmatheson.com/?p=135#comment-3568</guid>
		<description>Could you post the errors that you are getting. Also what OS and compiler are you using?</description>
		<content:encoded><![CDATA[<p>Could you post the errors that you are getting. Also what OS and compiler are you using?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

