<story><title>New C++ experimental feature: The tadpole operators</title><url>http://blogs.msdn.com/b/oldnewthing/archive/2015/05/25/10616865.aspx</url></story><parent_chain></parent_chain><comment><author>copsarebastards</author><text>This is a joke. For those who didn&amp;#x27;t get the joke:&lt;p&gt;1. ~ and - are separate operators. - negates, ~ does this: &lt;a href=&quot;http:&amp;#x2F;&amp;#x2F;stackoverflow.com&amp;#x2F;a&amp;#x2F;7207406&quot; rel=&quot;nofollow&quot;&gt;http:&amp;#x2F;&amp;#x2F;stackoverflow.com&amp;#x2F;a&amp;#x2F;7207406&lt;/a&gt;&lt;p&gt;2. Integers on computers are typically represented in two&amp;#x27;s complement notation: &lt;a href=&quot;http:&amp;#x2F;&amp;#x2F;www.cs.cornell.edu&amp;#x2F;~tomf&amp;#x2F;notes&amp;#x2F;cps104&amp;#x2F;twoscomp.html&quot; rel=&quot;nofollow&quot;&gt;http:&amp;#x2F;&amp;#x2F;www.cs.cornell.edu&amp;#x2F;~tomf&amp;#x2F;notes&amp;#x2F;cps104&amp;#x2F;twoscomp.html&lt;/a&gt;&lt;p&gt;3. Now that we know how all the parts work, we can put them together step by step:&lt;p&gt;&lt;pre&gt;&lt;code&gt;    ~-0010 =&amp;gt; ~1110 =&amp;gt; 0001
    -~0010 =&amp;gt; -1101 =&amp;gt; 0011&lt;/code&gt;&lt;/pre&gt;</text></comment>
<story><title>New C++ experimental feature: The tadpole operators</title><url>http://blogs.msdn.com/b/oldnewthing/archive/2015/05/25/10616865.aspx</url></story><parent_chain></parent_chain><comment><author>jloughry</author><text>It&amp;#x27;s a side effect of two&amp;#x27;s complement representation of integers. There ought to be a repository somewhere for neat tricks like this (with a warning never to use them in production).&lt;p&gt;&lt;pre&gt;&lt;code&gt;    FOR ENTERTAINMENT PURPOSES ONLY&lt;/code&gt;&lt;/pre&gt;</text></comment>