Portable generation of a new file name in a specified directory
<p>How can I <strong>portably</strong> (I am mostly interested in windows and linux) generate a new file name in a specified directory, with specified filename prefix and suffix?</p>

<pre><code>std::string UniqueName(std::string const&amp; dir, std::string const&amp; prefix,
                       std::string const&amp; suffix);
</code></pre>

<p>Any suggestions to implement this function, with as little as possible explicit dependencies on specific platforms.</p>
