Detecting negative number
<p>I have a code in which user has to pass > 0 number otherwise this code will throw. Using type of this arg as std::size_t doesn't work for the reason that negative numbers give large positive numbers. Is it good practice if I use signed type or are there other ways to enforce it?  </p>

<pre><code>void f(std::size_t number)
{
//if -1 is passed I'm (for obvious reason) get large positive number
}
</code></pre>
