<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Channel 9 - Discussions by banjomatic</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Niners/banjomatic/Discussions/RSS"></atom:link>
	<image>
		<url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url>
		<title>Channel 9 - Discussions by banjomatic</title>
		<link>http://channel9.msdn.com/Niners/banjomatic/Discussions</link>
	</image>
	<description>Channel 9 keeps you up to date with the latest news and behind the scenes info from Microsoft that developers love to keep up with. From LINQ to SilverLight – Watch videos and hear about all the cool technologies coming and the people behind them.</description>
	<link>http://channel9.msdn.com/Niners/banjomatic/Discussions</link>
	<language>en</language>
	<pubDate>Sun, 19 May 2013 07:37:15 GMT</pubDate>
	<lastBuildDate>Sun, 19 May 2013 07:37:15 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<c9:totalResults>0</c9:totalResults>
	<c9:pageCount>0</c9:pageCount>
	<c9:pageSize>0</c9:pageSize>
	<item>
		<title>Coffeehouse - MS working on a same compiler for C++ AND C# ! Not in &#39;incubation&#39; but for production !</title>
		<description><![CDATA[<p>@SteveRichter: unique_ptr is non-copyable by design as the unique_ptr owns the memory. If you want to transfer ownership, you need to std::move otherwise you'd have two unique_ptr's owning the same data (violating the uniqueness).</p><p>If you want to share ownership of memory between multiple smart pointers, you would use shared_ptr instead as its reference count is adjusted on copy/assignment, etc.</p><p>As for the std::vector of std::unique_ptr, this can be done with emplacement, this will construct the unique_ptr inside the vector itself with the raw pointer passed in. But i think with move semantics, std::vector&lt;std::wstring&gt; might be more appropriate.</p><p>&nbsp;</p><p>I'm still figuring out all of the c&#43;&#43;11 guidance myself, but maybe something like this:</p><p><pre class="brush: text">std::wstring msg(L&quot;The unique_ptr class supersedes auto_ptr&quot;);
::OutputDebugString(msg.c_str( ));
msgList.push_back(std::move(msg));</pre></p><p><span><br></span></p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/MS-working-on-a-same-compiler-for-C-AND-C--Not-in-incubation-but-for-production-/0262e349a50e4419acbba06000e85ad4#0262e349a50e4419acbba06000e85ad4</link>
		<pubDate>Tue, 29 May 2012 14:05:58 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/MS-working-on-a-same-compiler-for-C-AND-C--Not-in-incubation-but-for-production-/0262e349a50e4419acbba06000e85ad4#0262e349a50e4419acbba06000e85ad4</guid>
		<dc:creator>banjomatic</dc:creator>
		<slash:comments>37</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/banjomatic/Discussions/RSS</wfw:commentRss>
	</item>
</channel>
</rss>