<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>cplusplus.co.il &#187; tricks</title>
	<atom:link href="http://cplusplus.co.il/category/cpp/tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://cplusplus.co.il</link>
	<description>Discussing modern C++ and related topics.</description>
	<lastBuildDate>Tue, 31 Jan 2012 18:28:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='cplusplus.co.il' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>cplusplus.co.il &#187; tricks</title>
		<link>http://cplusplus.co.il</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://cplusplus.co.il/osd.xml" title="cplusplus.co.il" />
	<atom:link rel='hub' href='http://cplusplus.co.il/?pushpress=hub'/>
		<item>
		<title>Quines</title>
		<link>http://cplusplus.co.il/2010/04/16/quines/</link>
		<comments>http://cplusplus.co.il/2010/04/16/quines/#comments</comments>
		<pubDate>Fri, 16 Apr 2010 21:53:41 +0000</pubDate>
		<dc:creator>rmn</dc:creator>
				<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://cplusplus.co.il/?p=851</guid>
		<description><![CDATA[A Quine is a computer program which prints a copy of its own source code as its only output. Thus it is theoretically possible to compile such a program, run it, and then have its output compiled again to produce the initial program &#8211; in an infinite loop, forever. The shortest known C Quine (although [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cplusplus.co.il&amp;blog=8968104&amp;post=851&amp;subd=cpptalk&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://cplusplus.co.il/2010/04/16/quines/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ceb7c3e96e1e6c9fbef377af219fc0a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rmn</media:title>
		</media:content>
	</item>
		<item>
		<title>Escaping overloaded operators</title>
		<link>http://cplusplus.co.il/2010/02/19/escaping-overloaded-operators/</link>
		<comments>http://cplusplus.co.il/2010/02/19/escaping-overloaded-operators/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 11:54:36 +0000</pubDate>
		<dc:creator>rmn</dc:creator>
				<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://cplusplus.co.il/?p=892</guid>
		<description><![CDATA[The possibility of overloading just about any C++ operator and having it do something entirely different from what it was designed for, can sometimes make life pretty hard. Here are a couple of examples: What if you wanted to take the address of an object, which had implemented an entirely different semantic for the ampersand [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cplusplus.co.il&amp;blog=8968104&amp;post=892&amp;subd=cpptalk&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://cplusplus.co.il/2010/02/19/escaping-overloaded-operators/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ceb7c3e96e1e6c9fbef377af219fc0a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rmn</media:title>
		</media:content>
	</item>
		<item>
		<title>The omnipotent arrow operator</title>
		<link>http://cplusplus.co.il/2009/12/28/the-omnipotent-arrow-operator/</link>
		<comments>http://cplusplus.co.il/2009/12/28/the-omnipotent-arrow-operator/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 16:58:20 +0000</pubDate>
		<dc:creator>rmn</dc:creator>
				<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://cplusplus.co.il/?p=698</guid>
		<description><![CDATA[Are you familiar with the new, all-mighty, arrow &#8220;&#8211;&#62;&#8221; operator in C++ ? I believe this is the most intuitive code snippet ever, don&#8217;t you agree? The original stackoverflow question generated some funny comments &#8230; .. . But hold on.. We can do even better! How about &#8220;&#60;&#8212;-&#34; ? The thing is, that according to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cplusplus.co.il&amp;blog=8968104&amp;post=698&amp;subd=cpptalk&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://cplusplus.co.il/2009/12/28/the-omnipotent-arrow-operator/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ceb7c3e96e1e6c9fbef377af219fc0a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rmn</media:title>
		</media:content>
	</item>
		<item>
		<title>Measuring the size of a type without sizeof</title>
		<link>http://cplusplus.co.il/2009/11/25/measuring-the-size-of-a-type-without-sizeof/</link>
		<comments>http://cplusplus.co.il/2009/11/25/measuring-the-size-of-a-type-without-sizeof/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 20:39:55 +0000</pubDate>
		<dc:creator>rmn</dc:creator>
				<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://cplusplus.co.il/?p=614</guid>
		<description><![CDATA[Suppose you wanted to check the size (in bytes) of a certain type, WITHOUT using the sizeof() operator. How would you do that? And what is the size of an empty struct (or class), anyway? This is a nice occasion to discuss another interesting detail of C++: what would be the size of an empty [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cplusplus.co.il&amp;blog=8968104&amp;post=614&amp;subd=cpptalk&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://cplusplus.co.il/2009/11/25/measuring-the-size-of-a-type-without-sizeof/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ceb7c3e96e1e6c9fbef377af219fc0a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rmn</media:title>
		</media:content>
	</item>
		<item>
		<title>Checking sizeof or the offset of a member</title>
		<link>http://cplusplus.co.il/2009/10/29/checking-sizeof-or-the-offset-of-a-member/</link>
		<comments>http://cplusplus.co.il/2009/10/29/checking-sizeof-or-the-offset-of-a-member/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 21:05:53 +0000</pubDate>
		<dc:creator>rmn</dc:creator>
				<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://cplusplus.co.il/?p=512</guid>
		<description><![CDATA[Suppose we wanted to check the sizeof or the offset of a certain member within our struct (or class), without actually having an instantiated object to run the needed operations on. How would you do that? Here&#8217;s the scenario: Granted we&#8217;re not interested in instantiating a new object to check these values on, we&#8217;re in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cplusplus.co.il&amp;blog=8968104&amp;post=512&amp;subd=cpptalk&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://cplusplus.co.il/2009/10/29/checking-sizeof-or-the-offset-of-a-member/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ceb7c3e96e1e6c9fbef377af219fc0a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rmn</media:title>
		</media:content>
	</item>
		<item>
		<title>Changing the vtable pointer</title>
		<link>http://cplusplus.co.il/2009/08/14/changing-the-vtable-pointer/</link>
		<comments>http://cplusplus.co.il/2009/08/14/changing-the-vtable-pointer/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 12:33:16 +0000</pubDate>
		<dc:creator>rmn</dc:creator>
				<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://cpptalk.wordpress.com/?p=20</guid>
		<description><![CDATA[Most compilers implement dynamic binding by using a vtable whose pointer resides at the beginning of each object&#8217;s memory footprint (something along the lines of [vtable-pointer&#124;..members..], if we are not considering virtual inheritance). Keeping this idea in mind, why don&#8217;t we go ahead and attempt to change that vtable pointer? Notice we surely did not [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cplusplus.co.il&amp;blog=8968104&amp;post=20&amp;subd=cpptalk&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://cplusplus.co.il/2009/08/14/changing-the-vtable-pointer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ceb7c3e96e1e6c9fbef377af219fc0a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rmn</media:title>
		</media:content>
	</item>
	</channel>
</rss>
