Class constructed only on stack; not with new. C++
<p>Is there a way to create a class Foo</p>

<p>so that I can do:</p>

<pre><code>Foo foo;
</code></pre>

<p>but not</p>

<pre><code>Foo* foo = new Foo(); 
</code></pre>

<p>?</p>

<p>I don't want people to be able to allocate copies of Foo on the heap.</p>

<p>Thanks!</p>

<p>EDIT: Sorry, I was wrong on the "stack only, not heap". What I want to say is "can not use new operator".</p>
