<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: Ahy1's Code Snippets</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Wed, 27 Aug 2008 14:08:35 GMT</pubDate>
    <description>DZone Snippets: Ahy1's Code Snippets</description>
    <item>
      <title>Convert to string</title>
      <link>http://snippets.dzone.com/posts/show/1724</link>
      <description>// Convert any data type to string, using stringstream&lt;br /&gt;&lt;code&gt;&lt;br /&gt;#include&lt;sstream&gt;&lt;br /&gt;&lt;br /&gt;template&lt;typename T&gt;&lt;br /&gt;inline std::string tostr(const T &amp;v)&lt;br /&gt;{&lt;br /&gt;	std::ostringstream oss;&lt;br /&gt;	oss&lt;&lt;v;&lt;br /&gt;	return oss.str();&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Tue, 21 Mar 2006 21:48:55 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/1724</guid>
      <author>ahy1 ()</author>
    </item>
  </channel>
</rss>
