title: How do I pass a nullptr as an parameter?
body: <pre><code>void Foo::Bar(Baz&amp; x)
  {
  z = &amp;x;
  }
  
  Foo* foo;
  
  foo -&gt; Bar(nullptr);
  </code></pre>
  
  <p>I'm trying to create a generic template, Baz, using just typedef. 
  Since z is private and belongs to Foo, I have trouble assigning nullptr to z.</p>
  
  <p>If possible, I'd like the best way to set z to a nullptr without changing too much of the implementation-- unless this is that bad of an implementation.</p>
  
  <p>I was thinking maybe </p>
  
  <blockquote>
    <p>(Baz *) 0, or *(void * )0 or the Nullable Class
    .</p>
  </blockquote>