title: C++ inheritance - inaccessible base?
body: <p>I seem to be unable to use a base class as a function parameter, have I messed up my inheritance? </p>
  
  <p>I have the following in my main:</p>
  
  <pre><code>int some_ftn(Foo *f) { /* some code */ };
  Bar b;
  some_ftn(&amp;b);
  </code></pre>
  
  <p>And the class Bar inheriting from Foo in such a way:</p>
  
  <pre><code>class Bar : Foo
  {
  public:
      Bar();
      //snip
  
  private:
      //snip
  };
  </code></pre>
  
  <p>Should this not work?  I don't seem to be able to make that call in my main function</p>